diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-04-04 16:28:25 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-04-04 16:28:25 +0200 |
commit | b41cd70e60d135d7d6b734746cecdd4ddf4c6d38 (patch) | |
tree | d1ab9492227d0d5a34978e867fe7216a75640e26 /roles/docker/engine/tasks/main.yml | |
parent | port kubernetes/base to new storage volume roles (diff) |
port docker/engine to new storage volume roles
Diffstat (limited to 'roles/docker/engine/tasks/main.yml')
-rw-r--r-- | roles/docker/engine/tasks/main.yml | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/roles/docker/engine/tasks/main.yml b/roles/docker/engine/tasks/main.yml index 6c07797e..7bfd3eeb 100644 --- a/roles/docker/engine/tasks/main.yml +++ b/roles/docker/engine/tasks/main.yml @@ -14,13 +14,12 @@ dest: /etc/docker/daemon.json notify: restart docker -- name: prepare /var/lib/docker as LVM - when: docker_lvm is defined - import_tasks: lvm.yml - -- name: prepare /var/lib/docker as ZFS dataset - when: docker_zfs is defined - import_tasks: zfs.yml +- name: prepare storage volume for /var/lib/docker + when: docker_storage is defined + vars: + storage_volume: "{{ docker_storage | combine({'dest': '/var/lib/docker'})}}" + include_role: + name: "storage/{{ docker_storage.type }}/volume" - name: prepare package provider when: docker_pkg_provider != 'distro' |