summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/docker/tasks')
-rw-r--r--roles/docker/tasks/install_podman.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/docker/tasks/install_podman.yml b/roles/docker/tasks/install_podman.yml
index 3498aa7..f59e778 100644
--- a/roles/docker/tasks/install_podman.yml
+++ b/roles/docker/tasks/install_podman.yml
@@ -10,3 +10,18 @@
with_items:
- nvidia-container-runtime
when: "'cuda' in group_names"
+
+- name: Use vfs storage for system services (as overlay is still problematic)
+ lineinfile: dest="/etc/containers/storage.conf" regexp="driver\s*=" line="driver = \"vfs\"" state="present"
+ register: storage
+
+- name: Adapt storage
+ when: storage is changed
+ block:
+ - name: stat /var/lib/containers/storage
+ stat: path=/var/lib/containers/storage
+ register: storage_folder
+
+ - name: Rename and set aside storage folder using older driver
+ command: mv /var/lib/containers/storage /var/lib/containers/storage~
+ when: storage_folder.stat.exists