when statements should not include jinja2 templating delimiters

pull/91/head
Oskar Schöldström 7 years ago
parent b7b4a1cb4b
commit 9cf49ac6c2
  1. 4
      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