From e305b9b00b49bc21b1785802d65fbd6ead44f43c Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 13 Jul 2015 09:19:25 +0100 Subject: [PATCH] roles/common/tasks/main.yml: Use `default' filter instead of circumlocution. --- roles/common/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index a264715..5d80497 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -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 ###-------------------------------------------------------------------------- -- 2.11.0