diff --git a/handlers/main.yml b/handlers/main.yml index c822d8e..3b75b87 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -3,13 +3,9 @@ ansible.builtin.service: name: traefik state: restarted - when: ansible_service_mgr == "systemd" - environment: - XDG_RUNTIME_DIR: /var/run + when: ansible_service_mgr == "systemd - name: "Reload systemd" ansible.builtin.systemd: daemon_reload: true when: ansible_service_mgr == "systemd" - environment: - XDG_RUNTIME_DIR: /var/run diff --git a/tasks/main.yml b/tasks/main.yml index 5ca24a3..b3e5a33 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -47,5 +47,3 @@ enabled: true name: traefik state: started - environment: - XDG_RUNTIME_DIR: /var/run