|
@@ -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
|