From cb21e152b7ff2d0e3f63b602d4db6920698ec892 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Thu, 16 Jul 2015 16:31:21 +0200 Subject: [PATCH] Don't create directory if root specified --- tasks/vhost.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/vhost.yml b/tasks/vhost.yml index 8308510..0430775 100644 --- a/tasks/vhost.yml +++ b/tasks/vhost.yml @@ -4,6 +4,7 @@ file: path={{ nginx_root }}/{{ item.name }} state=directory recurse=yes owner=www-data group=www-data mode=0755 file: path={{ nginx_root }}/{{ item.name }}/public state=directory recurse=yes owner=www-data group=www-data mode=0755 with_items: nginx_vhosts + when: item.root is not defined - name: TEMPLATE | Create vhosts template: src=etc/nginx/sites-available/{{ item.template }}.j2 dest=/etc/nginx/sites-available/{{ item.name }}