summaryrefslogtreecommitdiff
path: root/roles/docker/engine
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-06-07 18:58:12 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-06-07 18:58:12 +0200
commit8fa81fdd5e803a1bc7957f7f27f34bea36f7dbbd (patch)
treef94b73a43b5c80885b6217250f9eac39102d24fa /roles/docker/engine
parentupdate gpg key for equinox (diff)
docker: auto-select package name base on pkg provider
Diffstat (limited to 'roles/docker/engine')
-rw-r--r--roles/docker/engine/defaults/main.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/docker/engine/defaults/main.yml b/roles/docker/engine/defaults/main.yml
index b2c21963..a476bda1 100644
--- a/roles/docker/engine/defaults/main.yml
+++ b/roles/docker/engine/defaults/main.yml
@@ -1,9 +1,12 @@
---
-docker_pkg_provider: distro
-docker_pkg_name: docker.io
+_docker_pkg_name_map_:
+ distro: docker.io
+ docker-com: docker-ce
+docker_pkg_provider: distro
# docker_pkg_provider: docker-com
-# docker_pkg_name: docker-ce
+
+docker_pkg_name: "{{ _docker_pkg_name_map_[docker_pkg_provider] }}"
# docker_pkg_version: