From 9cf49ac6c2fdf0b2da99483be848e361b687d7ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Fri, 21 Apr 2017 07:46:45 -0500 Subject: [PATCH] when statements should not include jinja2 templating delimiters --- tasks/vhosts.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/vhosts.yml b/tasks/vhosts.yml index 9c4ef43..f89b8f2 100644 --- a/tasks/vhosts.yml +++ b/tasks/vhosts.yml @@ -20,7 +20,7 @@ owner: root group: root mode: 0644 - when: "{{ item.state|default('present') != 'absent' }}" + when: item.state|default('present') != 'absent' with_items: "{{ nginx_vhosts }}" notify: reload nginx @@ -28,6 +28,6 @@ file: path: "{{ nginx_vhost_path }}/{{ item.server_name.split(' ')[0] }}.conf" state: absent - when: "{{ item.state|default('present') == 'absent' }}" + when: item.state|default('present') == 'absent' with_items: "{{ nginx_vhosts }}" notify: reload nginx