Ensure ownership to caddy after sync
This commit is contained in:
parent
ab1a0489b4
commit
926feb4647
1 changed files with 8 additions and 0 deletions
|
@ -23,3 +23,11 @@
|
||||||
synchronize: src={{ syncpath }}
|
synchronize: src={{ syncpath }}
|
||||||
dest={{ caddy_www }}/{{ vhost_name }}
|
dest={{ caddy_www }}/{{ vhost_name }}
|
||||||
delete=yes
|
delete=yes
|
||||||
|
|
||||||
|
|
||||||
|
- name: Recursively change ownership of directory to caddy
|
||||||
|
file: path={{ caddy_www }}/{{ vhost_name }}
|
||||||
|
state=directory
|
||||||
|
recurse=yes
|
||||||
|
owner=caddy
|
||||||
|
group=caddy
|
||||||
|
|
Loading…
Add table
Reference in a new issue