diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-06-07 18:58:12 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-06-07 18:58:12 +0200 |
commit | 8fa81fdd5e803a1bc7957f7f27f34bea36f7dbbd (patch) | |
tree | f94b73a43b5c80885b6217250f9eac39102d24fa /roles/docker/engine | |
parent | update 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.yml | 9 |
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: |