chiark / gitweb /
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 a26471598b4fd397986aeb41ec90dccf7641e2e8..5d8049710fcf474b16dc7b9b06ada35f9647621e 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
 
 ###--------------------------------------------------------------------------