role-traefik/handlers/main.yml

17 lines
364 B
YAML

---
- name: "Restart traefik"
ansible.builtin.service:
name: traefik
state: restarted
scope: "user"
when: ansible_service_mgr == "systemd"
XDG_RUNTIME_DIR: /var/run
- name: "Reload systemd"
ansible.builtin.systemd:
daemon_reload: true
scope: "user"
when: ansible_service_mgr == "systemd"
environment:
XDG_RUNTIME_DIR: /var/run