From b013450948d989f776fd7c4763f6cd1046364cbf Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Tue, 19 Sep 2023 18:16:00 +0200 Subject: [PATCH] fix: rootful path --- handlers/main.yml | 2 -- tasks/main.yml | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 35cb432..c822d8e 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -3,7 +3,6 @@ ansible.builtin.service: name: traefik state: restarted - scope: "user" when: ansible_service_mgr == "systemd" environment: XDG_RUNTIME_DIR: /var/run @@ -11,7 +10,6 @@ - name: "Reload systemd" ansible.builtin.systemd: daemon_reload: true - scope: "user" when: ansible_service_mgr == "systemd" environment: XDG_RUNTIME_DIR: /var/run diff --git a/tasks/main.yml b/tasks/main.yml index d258bbe..5ca24a3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,7 +2,7 @@ - name: Create podman folder file: - path: /root/.config/containers/systemd/ + path: /etc/containers/systemd state: directory mode: 0775 recurse: yes @@ -26,12 +26,12 @@ - name: Copy traefik.network ansible.builtin.template: src: traefik.network - dest: "/root/.config/containers/systemd/traefik.network" + dest: "/etc/containers/systemdtraefik.network" - name: Copy traefik.container ansible.builtin.template: src: traefik.quadlet.j2 - dest: "/root/.config/containers/systemd/traefik.container" + dest: "/etc/containers/systemdtraefik.container" - name: Copy traefik.yml ansible.builtin.template: @@ -47,6 +47,5 @@ enabled: true name: traefik state: started - scope: "user" environment: XDG_RUNTIME_DIR: /var/run