fix: use xdg_runtime_dir

This commit is contained in:
Lennard Brinkhaus 2023-09-19 17:51:18 +02:00
parent 6b42723e1d
commit 75f81cb4ef
Signed by: lennard.brinkhaus
GPG Key ID: 286421EC53998B22

View File

@ -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