fix: rootful path

This commit is contained in:
Lennard Brinkhaus 2023-09-19 18:16:00 +02:00
parent 75f81cb4ef
commit b013450948
Signed by: lennard.brinkhaus
GPG Key ID: 286421EC53998B22
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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