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