fix: set environment

This commit is contained in:
Lennard Brinkhaus 2023-09-18 20:17:18 +02:00
parent 54204aff58
commit 4edc06e125
Signed by: lennard.brinkhaus
GPG Key ID: 286421EC53998B22
2 changed files with 3 additions and 4 deletions

View File

@ -5,9 +5,12 @@
state: restarted
scope: "user"
when: ansible_service_mgr == "systemd"
XDG_RUNTIME_DIR: /var/run
- name: "Reload systemd"
ansible.builtin.systemd:
daemon_reload: true
scope: "user"
when: ansible_service_mgr == "systemd"
environment:
XDG_RUNTIME_DIR: /var/run

View File

@ -37,10 +37,6 @@
src: traefik.yaml.j2
dest: "/etc/traefik/traefik.yaml"
- name: "Reload systemd"
ansible.builtin.systemd:
daemon_reload: true
scope: "user"
notify:
- Reload systemd
- Restart traefik