mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 22:04:43 +03:00
Omit does not work in the context of yum_repository proxy. The ansible documentation specifies to use _none_ to disable the global proxy setting. (#4225)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
22a5a00c49
commit
7697baf0da
@@ -75,7 +75,7 @@
|
|||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
gpgkey: "{{extras_rh_repo_gpgkey}}"
|
gpgkey: "{{extras_rh_repo_gpgkey}}"
|
||||||
keepcache: "{{ extras_rh_rpm_keepcache | default('1') }}"
|
keepcache: "{{ extras_rh_rpm_keepcache | default('1') }}"
|
||||||
proxy: " {{ http_proxy | default(omit) }}"
|
proxy: " {{ http_proxy | default('_none_') }}"
|
||||||
when:
|
when:
|
||||||
- not is_atomic
|
- not is_atomic
|
||||||
- package_python_httplib2.results | length == 0
|
- package_python_httplib2.results | length == 0
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
gpgkey: "{{extras_rh_repo_gpgkey}}"
|
gpgkey: "{{extras_rh_repo_gpgkey}}"
|
||||||
keepcache: "{{ docker_rpm_keepcache | default('1') }}"
|
keepcache: "{{ docker_rpm_keepcache | default('1') }}"
|
||||||
proxy: " {{ http_proxy | default(omit) }}"
|
proxy: " {{ http_proxy | default('_none_') }}"
|
||||||
when:
|
when:
|
||||||
- ansible_distribution in ["CentOS","RedHat"] and not is_atomic
|
- ansible_distribution in ["CentOS","RedHat"] and not is_atomic
|
||||||
- yum_result.results | length == 0
|
- yum_result.results | length == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user