From 48fe1e24969ffcd64ebf78ac3111d117f1254810 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 26 Oct 2022 23:56:59 +0200 Subject: [PATCH] Deconfigure volume_path --- .../.config/containers/containers.conf.j2 | 2 -- playbooks/tasks/services/deploy/service/01-user.yml | 10 +--------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 playbooks/filesystem/common/var/lib/_hostname/home/_service_user_name/.config/containers/containers.conf.j2 diff --git a/playbooks/filesystem/common/var/lib/_hostname/home/_service_user_name/.config/containers/containers.conf.j2 b/playbooks/filesystem/common/var/lib/_hostname/home/_service_user_name/.config/containers/containers.conf.j2 deleted file mode 100644 index 699e405..0000000 --- a/playbooks/filesystem/common/var/lib/_hostname/home/_service_user_name/.config/containers/containers.conf.j2 +++ /dev/null @@ -1,2 +0,0 @@ -[engine] -volume_path = "/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}" diff --git a/playbooks/tasks/services/deploy/service/01-user.yml b/playbooks/tasks/services/deploy/service/01-user.yml index e3d00fa..00c5074 100644 --- a/playbooks/tasks/services/deploy/service/01-user.yml +++ b/playbooks/tasks/services/deploy/service/01-user.yml @@ -76,18 +76,10 @@ mode: 0644 register: user_containers_storage - - name: Configure containers.conf for user {{ service_user_name }} - template: - src: "./filesystem/common/var/lib/_hostname/home/_service_user_name/.config/containers/containers.conf.j2" - dest: "{{ service_home }}/.config/containers/containers.conf" - mode: 0644 - register: user_containers_containers - - name: Reset podman shell: "cd $HOME; yes | podman system reset" when: - user_containers_storage is changed or - user_containers_containers is changed + user_containers_storage is changed - name: Create systemd directory for user {{ service_user_name }} file: