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"
|
||||||
|
|
||||||
|
- name: "Reload systemd"
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
daemon_reload: true
|
||||||
|
when: ansible_service_mgr == "systemd"
|
||||||
|
|
||||||
|
- name: Start Traefik
|
||||||
|
systemd_service:
|
||||||
|
enabled: true
|
||||||
|
name: traefik
|
||||||
|
state: started
|
||||||
notify:
|
notify:
|
||||||
- Reload systemd
|
|
||||||
- Restart traefik
|
- Restart traefik
|
||||||
|
|
||||||
- name: Start Traefik
|
|
||||||
systemd_service:
|
|
||||||
enabled: true
|
|
||||||
name: traefik
|
|
||||||
state: started
|
|
||||||
|
Loading…
Reference in New Issue
Block a user