From 4881188d1c7849aef2a1ddd96c12b3cb0174ae2e Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Tue, 19 Sep 2023 18:45:26 +0200 Subject: [PATCH] fix: move some tasks because of scheduling --- tasks/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index be036cd..a2710b9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -38,12 +38,16 @@ src: traefik.yaml.j2 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: - - Reload systemd - Restart traefik -- name: Start Traefik - systemd_service: - enabled: true - name: traefik - state: started