homelab/roles/traefik/handlers/main.yml

15 lines
364 B
YAML

- name: Reload Traefik container
file:
path: "{{ traefik_root }}/config/dynamic"
state: touch
listen: reload_traefik
- name: Restart Traefik container
docker_container:
name: "{{ traefik_name }}"
image: traefik:{{ traefik_version }}
state: started
container_default_behavior: "no_defaults"
restart: yes
listen: restart_traefik