fix: use systemvide correct file

This commit is contained in:
Lennard Brinkhaus 2023-09-18 21:41:03 +02:00
parent ea47d71687
commit 6b42723e1d
Signed by: lennard.brinkhaus
GPG Key ID: 286421EC53998B22

View File

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