summaryrefslogtreecommitdiff
path: root/roles/docker/engine/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-04-04 16:28:25 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-04-04 16:28:25 +0200
commitb41cd70e60d135d7d6b734746cecdd4ddf4c6d38 (patch)
treed1ab9492227d0d5a34978e867fe7216a75640e26 /roles/docker/engine/tasks/main.yml
parentport 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.yml13
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'