roles/common/tasks/main.yml: Use `default' filter instead of circumlocution.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 13 Jul 2015 08:19:25 +0000 (09:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 13 Jul 2015 08:19:25 +0000 (09:19 +0100)
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
 
 ###--------------------------------------------------------------------------