fix: use xdg_runtime_dir
This commit is contained in:
parent
6b42723e1d
commit
75f81cb4ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user