ansible/roles/docker/tasks/caddy.yml

28 lines
592 B
YAML
Raw Permalink Normal View History

2024-08-14 04:18:11 +02:00
- name: make caddy directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/caddy
- name: copy Caddyfile
ansible.builtin.copy:
src: Caddyfile
dest: /opt/stacks/caddy/Caddyfile
owner: root
mode: 644
notify: restart caddy
2024-08-14 04:18:11 +02:00
- name: copy caddy compose file
ansible.builtin.copy:
src: caddy-compose.yml
dest: /opt/stacks/caddy/compose.yml
owner: root
mode: 644
- name: deploy caddy stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/caddy
2024-09-22 16:16:55 +02:00
recreate: never
2024-08-14 04:18:11 +02:00
files:
- compose.yml