lab-ansible/roles/apps/tasks/extra_tasks/caddy.yml

22 lines
476 B
YAML
Raw Permalink Normal View History

2024-02-04 17:03:15 +00:00
# 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