summaryrefslogtreecommitdiffstats
path: root/roles/docker
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-25 00:19:07 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-25 00:19:07 +0200
commit9e38736b93a6b737ecb53d1f41dadf45cbb22c1c (patch)
tree33cda4d193d83772e7fd0f45e7101452497be7d3 /roles/docker
parent15890ccdef55168e9753ff6957ce64096837c627 (diff)
downloaditm-9e38736b93a6b737ecb53d1f41dadf45cbb22c1c.tar.gz
itm-9e38736b93a6b737ecb53d1f41dadf45cbb22c1c.tar.bz2
itm-9e38736b93a6b737ecb53d1f41dadf45cbb22c1c.tar.xz
itm-9e38736b93a6b737ecb53d1f41dadf45cbb22c1c.zip
Various stuff to pre-configure compute nodes
Diffstat (limited to 'roles/docker')
-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