From 4507e2015560f4353eea1bef7969e215de600fe2 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 8 Dec 2015 16:58:28 +0200 Subject: [PATCH] roles/nginx: Change owner/group of WordPress folder to nginx after cloning Otherwise stuff like theme and plugin installs won't work. Signed-off-by: Alan Orth --- roles/nginx/tasks/tls_vhosts.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/nginx/tasks/tls_vhosts.yml b/roles/nginx/tasks/tls_vhosts.yml index 07d247f..09cef98 100644 --- a/roles/nginx/tasks/tls_vhosts.yml +++ b/roles/nginx/tasks/tls_vhosts.yml @@ -26,4 +26,10 @@ with_items: nginx_tls_vhosts tags: wordpress +- name: Fix WordPress directory permissions + file: path={{ nginx_root_prefix }}/{{ item.nginx_domain_name }} state=directory owner=nginx group=nginx recurse=yes + when: item.has_wordpress == 'yes' + with_items: nginx_tls_vhosts + tags: wordpress + # vim: set ts=2 sw=2: