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