22 lines
476 B
YAML
22 lines
476 B
YAML
|
# vim: ft=yaml.ansible
|
||
|
# code: language=ansible
|
||
|
---
|
||
|
- name: Create subdirectories for Caddy data
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ apps_data_root }}/caddy/data/caddy-{{ item }}"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rwx,go=
|
||
|
state: directory
|
||
|
loop:
|
||
|
- config
|
||
|
- data
|
||
|
|
||
|
- name: Copy Caddyfile
|
||
|
ansible.builtin.template:
|
||
|
src: caddy/Caddyfile.j2
|
||
|
dest: "{{ apps_data_root }}/caddy/data/Caddyfile"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=r,o=r
|