roles/common/tasks/main.yml: Use `default' filter instead of circumlocution.
[distorted-ansible] / roles / common / tasks / main.yml
index a264715..5d80497 100644 (file)
@@ -40,7 +40,7 @@
 - name: install NTP configuration files
   tags: [ntp, ntp-client]
   copy: src=ntp-client/ntp.conf dest=/etc
-  when: server is not defined or 'ntp' not in server
+  when: ('ntp') not in server |default([])
   notify: restart ntpd
 
 ###--------------------------------------------------------------------------