Fix condition when creating vhosts

pull/22/head
Emilien Mantel 2016-08-30 11:18:14 +02:00
parent 34c8d1926f
commit cf662acdd7
1 changed files with 1 additions and 1 deletions

View File

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