infrastructure/roles/common/handlers/main.yml

8 lines
279 B
YAML
Raw Normal View History

2024-09-26 22:02:36 +00:00
---
- name: Reload caddy
ansible.builtin.command:
cmd: docker compose exec app sh -c "caddy validate --config /etc/caddy/Caddyfile && caddy reload --config /etc/caddy/Caddyfile"
chdir: "{{ caddy_path }}"
when: "'local-dev' != inventory_hostname"
changed_when: true