diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-10-25 00:19:07 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-10-25 00:19:07 +0200 |
commit | 9e38736b93a6b737ecb53d1f41dadf45cbb22c1c (patch) | |
tree | 33cda4d193d83772e7fd0f45e7101452497be7d3 /roles/docker/tasks/install_podman.yml | |
parent | 15890ccdef55168e9753ff6957ce64096837c627 (diff) | |
download | itm-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/tasks/install_podman.yml')
-rw-r--r-- | roles/docker/tasks/install_podman.yml | 15 |
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 |