20 lines
516 B
YAML
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"
|