infrastructure/roles/caddy/handlers/main.yml
Saibotk d52827bd9a
fix(lint): caddy mark selinux context handler as always changed
Find a better solution in the future, but for now this is fine.
2024-09-12 22:55:00 +02:00

20 lines
516 B
YAML

- name: Apply new SELinux file context to filesystem.
ansible.builtin.command: "restorecon -irF {{ caddy_install_dir }}"
become: true
changed_when: true
listen: "caddy selinux context changed"
- name: Restart caddy service.
ansible.builtin.systemd:
state: restarted
name: "caddy"
daemon_reload: true
become: true
listen: "caddy service changed"
- name: Reload caddy service.
ansible.builtin.systemd:
state: reloaded
name: "caddy"
become: true
listen: "caddy config changed"