summaryrefslogtreecommitdiff
path: root/roles/docker/engine/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-01-18 19:21:40 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-01-18 19:27:51 +0100
commit72208cfdef9fd6a6684d2853d76d502c83663d14 (patch)
tree64d87d06cef54f2479fc74161811d47a2346b5fc /roles/docker/engine/tasks/main.yml
parentfix vm-install for kali (diff)
docker/engine: generic plugin handling
Diffstat (limited to 'roles/docker/engine/tasks/main.yml')
-rw-r--r--roles/docker/engine/tasks/main.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/roles/docker/engine/tasks/main.yml b/roles/docker/engine/tasks/main.yml
index 4619f12b..cf879631 100644
--- a/roles/docker/engine/tasks/main.yml
+++ b/roles/docker/engine/tasks/main.yml
@@ -49,11 +49,10 @@
state: present
allow_downgrade: yes
-- name: install buildx plugin
- when: docker_install_buildx
+- name: install docker plugin
+ when: (docker_plugins | length) > 0
apt:
- name:
- - "{{ docker_buildx_pkg_name }}"
+ name: "{{ docker_plugins | map('extract', docker_plugin_pkg_names) | list }}"
state: present
## TODO: for now this is only needed on Debian Bullseye and beyond