From 5556c1318d009830a3635615b9264798d3e01144 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 7 Nov 2017 12:37:14 +0100 Subject: [PATCH] nginx: fix the creation of the webroot directory. --- nginx/tasks/nginx-virtualhosts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/tasks/nginx-virtualhosts.yml b/nginx/tasks/nginx-virtualhosts.yml index 17d33813..1bc8a12f 100644 --- a/nginx/tasks/nginx-virtualhosts.yml +++ b/nginx/tasks/nginx-virtualhosts.yml @@ -1,7 +1,7 @@ --- - block: - name: Create the nginx webroot if different from the default - file: dest={{ nginx_webroot }} mode=0755 + file: dest={{ nginx_webroot }} state=directory mode=0755 when: nginx_webroot != '/usr/share/nginx/html' - name: Install the nginx virtualhost files