Ensure ownership to caddy after sync

This commit is contained in:
Wilfried OLLIVIER 2020-03-20 14:33:56 +01:00
parent ab1a0489b4
commit 926feb4647
1 changed files with 8 additions and 0 deletions

View File

@ -23,3 +23,11 @@
synchronize: src={{ syncpath }}
dest={{ caddy_www }}/{{ vhost_name }}
delete=yes
- name: Recursively change ownership of directory to caddy
file: path={{ caddy_www }}/{{ vhost_name }}
state=directory
recurse=yes
owner=caddy
group=caddy