From 29cad038a72078dd3d54df9f42300e2065196daf Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Tue, 19 Sep 2023 18:22:26 +0200 Subject: [PATCH] fix: remove env variable --- handlers/main.yml | 6 +----- tasks/main.yml | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index c822d8e..3b75b87 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -3,13 +3,9 @@ ansible.builtin.service: name: traefik state: restarted - when: ansible_service_mgr == "systemd" - environment: - XDG_RUNTIME_DIR: /var/run + when: ansible_service_mgr == "systemd - name: "Reload systemd" ansible.builtin.systemd: daemon_reload: true when: ansible_service_mgr == "systemd" - environment: - XDG_RUNTIME_DIR: /var/run diff --git a/tasks/main.yml b/tasks/main.yml index 5ca24a3..b3e5a33 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -47,5 +47,3 @@ enabled: true name: traefik state: started - environment: - XDG_RUNTIME_DIR: /var/run