mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-11-02 03:24:04 +07:00
Fix condition when creating vhosts
This commit is contained in:
1 parent
34c8d1926f
commit
cf662acdd7
1 file changed
+1
-1
+1
-1
@@ -45,7 +45,7 @@
|
||||
dest={{ nginx_etc_dir }}/sites-available/{{ item.filename | default(item.name if item.name is string else item.name[0]) }}
|
||||
with_items: "{{ nginx_vhosts }}"
|
||||
notify: ['reload nginx', 'restart nginx freebsd']
|
||||
when: item.state is not defined or not item.state != 'absent'
|
||||
when: item.state is not defined or item.state != 'absent'
|
||||
|
||||
- name: FILE | Delete vhosts
|
||||
file: path={{ nginx_etc_dir }}/sites-available/{{ item.filename | default(item.name if item.name is string else item.name[0]) }} state=absent
|
||||
|
||||
Reference in new issue
Block a user