From 4edc06e12593af04b01023af78bb7bbcf6d69fc2 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Mon, 18 Sep 2023 20:17:18 +0200 Subject: [PATCH] fix: set environment --- handlers/main.yml | 3 +++ tasks/main.yml | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 0eed299..205e1a7 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -5,9 +5,12 @@ state: restarted scope: "user" when: ansible_service_mgr == "systemd" + XDG_RUNTIME_DIR: /var/run - name: "Reload systemd" ansible.builtin.systemd: daemon_reload: true scope: "user" when: ansible_service_mgr == "systemd" + environment: + XDG_RUNTIME_DIR: /var/run diff --git a/tasks/main.yml b/tasks/main.yml index f87594a..7e4bf98 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,10 +37,6 @@ src: traefik.yaml.j2 dest: "/etc/traefik/traefik.yaml" - - name: "Reload systemd" - ansible.builtin.systemd: - daemon_reload: true - scope: "user" notify: - Reload systemd - Restart traefik