From 75f81cb4ef11082821bbd5caa6431122c2f52330 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Tue, 19 Sep 2023 17:51:18 +0200 Subject: [PATCH] fix: use xdg_runtime_dir --- tasks/main.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6297d1b..d258bbe 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -38,15 +38,6 @@ src: traefik.yaml.j2 dest: "/etc/traefik/traefik.yaml" - - name: Set env template - lineinfile: - path="/etc/environment" - line="XDG_RUNTIME_DIR=/var/run" - regexp='^XDG_RUNTIME_DIR=/var/run$' - state=present - insertafter=EOF - create=True - notify: - Reload systemd - Restart traefik @@ -57,4 +48,5 @@ name: traefik state: started scope: "user" - + environment: + XDG_RUNTIME_DIR: /var/run