homelab/roles/traefik/handlers/main.yml

15 lines
364 B
YAML
Raw Normal View History

2020-07-17 04:41:21 +00:00
- name: Reload Traefik container
file:
2020-07-17 04:52:55 +00:00
path: "{{ traefik_root }}/config/dynamic"
2020-07-17 04:41:21 +00:00
state: touch
listen: reload_traefik
2020-09-03 23:00:27 +00:00
- name: Restart Traefik container
docker_container:
name: "{{ traefik_name }}"
image: traefik:{{ traefik_version }}
state: started
2022-05-20 03:19:09 +00:00
container_default_behavior: "no_defaults"
2020-09-03 23:00:27 +00:00
restart: yes
listen: restart_traefik