fix: move some tasks because of scheduling
This commit is contained in:
parent
915f95d568
commit
4881188d1c
@ -38,12 +38,16 @@
|
|||||||
src: traefik.yaml.j2
|
src: traefik.yaml.j2
|
||||||
dest: "/etc/traefik/traefik.yaml"
|
dest: "/etc/traefik/traefik.yaml"
|
||||||
|
|
||||||
notify:
|
- name: "Reload systemd"
|
||||||
- Reload systemd
|
ansible.builtin.systemd:
|
||||||
- Restart traefik
|
daemon_reload: true
|
||||||
|
when: ansible_service_mgr == "systemd"
|
||||||
|
|
||||||
- name: Start Traefik
|
- name: Start Traefik
|
||||||
systemd_service:
|
systemd_service:
|
||||||
enabled: true
|
enabled: true
|
||||||
name: traefik
|
name: traefik
|
||||||
state: started
|
state: started
|
||||||
|
notify:
|
||||||
|
- Restart traefik
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user