fix: use xdg_runtime_dir
This commit is contained in:
parent
6b42723e1d
commit
75f81cb4ef
@ -38,15 +38,6 @@
|
|||||||
src: traefik.yaml.j2
|
src: traefik.yaml.j2
|
||||||
dest: "/etc/traefik/traefik.yaml"
|
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:
|
notify:
|
||||||
- Reload systemd
|
- Reload systemd
|
||||||
- Restart traefik
|
- Restart traefik
|
||||||
@ -57,4 +48,5 @@
|
|||||||
name: traefik
|
name: traefik
|
||||||
state: started
|
state: started
|
||||||
scope: "user"
|
scope: "user"
|
||||||
|
environment:
|
||||||
|
XDG_RUNTIME_DIR: /var/run
|
||||||
|
Loading…
Reference in New Issue
Block a user