fix: set environment
This commit is contained in:
parent
54204aff58
commit
4edc06e125
@ -5,9 +5,12 @@
|
|||||||
state: restarted
|
state: restarted
|
||||||
scope: "user"
|
scope: "user"
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
|
XDG_RUNTIME_DIR: /var/run
|
||||||
|
|
||||||
- name: "Reload systemd"
|
- name: "Reload systemd"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
scope: "user"
|
scope: "user"
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
|
environment:
|
||||||
|
XDG_RUNTIME_DIR: /var/run
|
||||||
|
@ -37,10 +37,6 @@
|
|||||||
src: traefik.yaml.j2
|
src: traefik.yaml.j2
|
||||||
dest: "/etc/traefik/traefik.yaml"
|
dest: "/etc/traefik/traefik.yaml"
|
||||||
|
|
||||||
- name: "Reload systemd"
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
daemon_reload: true
|
|
||||||
scope: "user"
|
|
||||||
notify:
|
notify:
|
||||||
- Reload systemd
|
- Reload systemd
|
||||||
- Restart traefik
|
- Restart traefik
|
||||||
|
Loading…
Reference in New Issue
Block a user