From cf662acdd7608d696095f6aba6e9660402444922 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Tue, 30 Aug 2016 11:18:14 +0200 Subject: [PATCH] Fix condition when creating vhosts --- tasks/vhost.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/vhost.yml b/tasks/vhost.yml index 64a0fd0..8f57197 100644 --- a/tasks/vhost.yml +++ b/tasks/vhost.yml @@ -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