Browse Source

when statements should not include jinja2 templating delimiters

Oskar Schöldström 8 years ago
parent
commit
9cf49ac6c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tasks/vhosts.yml

+ 2 - 2
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