mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-09 12:42:10 +07:00
Fix site.state == absent
- Site is deleted now - Doc updated
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
- "{{ nginx_sites }}"
|
||||
- ['sites-available', 'sites-enabled']
|
||||
notify: ['reload nginx', 'restart nginx freebsd']
|
||||
when: item.state is defined and item.state == 'absent'
|
||||
when: item.0.state is defined and item.0.state == 'absent'
|
||||
loop_control:
|
||||
label: "{{ nginx_etc_dir }}/{{ item.1 }}/{{ item.0 | nginx_site_filename }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user