From 6b42723e1dc6f46c453807b53c7150c4606e4b81 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Mon, 18 Sep 2023 21:41:03 +0200 Subject: [PATCH] fix: use systemvide correct file --- tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 146707e..6297d1b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -38,8 +38,14 @@ src: traefik.yaml.j2 dest: "/etc/traefik/traefik.yaml" - - name: Export XDG_RUNTIME_DIR - shell: export XDG_RUNTIME_DIR=/var/run + - 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