role-traefik/handlers/main.yml

18 lines
381 B
YAML
Raw Normal View History

2023-09-18 16:42:05 +00:00
---
- name: "Restart traefik"
ansible.builtin.service:
name: traefik
state: restarted
scope: "user"
when: ansible_service_mgr == "systemd"
2023-09-18 18:19:48 +00:00
environment:
XDG_RUNTIME_DIR: /var/run
2023-09-18 16:42:05 +00:00
- name: "Reload systemd"
ansible.builtin.systemd:
daemon_reload: true
scope: "user"
when: ansible_service_mgr == "systemd"
2023-09-18 18:17:18 +00:00
environment:
XDG_RUNTIME_DIR: /var/run