Merge "add docker_apt_key_env variable to docker role"

This commit is contained in:
Zuul 2025-01-27 11:08:21 +00:00 committed by Gerrit Code Review
commit 9acc0ca6f7
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
features:
- |
With the ``docker_apt_key_env`` variable it is now possible to set
enviroment variables for the get_url module to pass http proxy config.
`LP#2086700 <https://launchpad.net/bugs/2086700>`__

View File

@ -11,6 +11,9 @@ docker_apt_key_file: "gpg"
docker_apt_package: "docker-ce"
docker_apt_package_pin: ""
# Set environment variables when fetching gpg keys, to use a proxy for example
docker_apt_key_env: {}
# Docker Yum repository configuration.
docker_yum_url: "https://download.docker.com/linux/centos"
docker_yum_baseurl: "{{ docker_yum_url }}/$releasever/$basearch/stable"

View File

@ -30,6 +30,7 @@
mode: "0644"
force: true
become: true
environment: "{{ docker_apt_key_env }}"
- name: Install docker apt pin
copy: