diff --git a/roles/bootstrap-os/tasks/bootstrap-centos.yml b/roles/bootstrap-os/tasks/bootstrap-centos.yml index bd5783355..7f5d641f8 100644 --- a/roles/bootstrap-os/tasks/bootstrap-centos.yml +++ b/roles/bootstrap-os/tasks/bootstrap-centos.yml @@ -75,7 +75,7 @@ gpgcheck: yes gpgkey: "{{extras_rh_repo_gpgkey}}" keepcache: "{{ extras_rh_rpm_keepcache | default('1') }}" - proxy: " {{ http_proxy | default(omit) }}" + proxy: " {{ http_proxy | default('_none_') }}" when: - not is_atomic - package_python_httplib2.results | length == 0 diff --git a/roles/container-engine/docker/tasks/main.yml b/roles/container-engine/docker/tasks/main.yml index 8dde643d4..150366fc4 100644 --- a/roles/container-engine/docker/tasks/main.yml +++ b/roles/container-engine/docker/tasks/main.yml @@ -125,7 +125,7 @@ gpgcheck: yes gpgkey: "{{extras_rh_repo_gpgkey}}" keepcache: "{{ docker_rpm_keepcache | default('1') }}" - proxy: " {{ http_proxy | default(omit) }}" + proxy: " {{ http_proxy | default('_none_') }}" when: - ansible_distribution in ["CentOS","RedHat"] and not is_atomic - yum_result.results | length == 0