mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-27 13:55:06 -02:30
Adding option to disable globally applying a proxy to etc/yum.conf (#6828)
* Adding option to disable gloablly applying a proxy to etc/yum.conf * Change made to proxy_yum_globaly basedon reviewer feedback * fix trailing spaces in ymllint
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
environment: {}
|
||||
when:
|
||||
- http_proxy is defined
|
||||
- not skip_http_proxy_on_os_packages
|
||||
|
||||
- name: Add http_proxy to /etc/dnf/dnf.conf if http_proxy is defined
|
||||
raw: echo 'proxy={{ http_proxy }}' >> /etc/dnf/dnf.conf
|
||||
@@ -28,6 +29,7 @@
|
||||
when:
|
||||
- http_proxy is defined
|
||||
- need_http_proxy.rc != 0
|
||||
- not skip_http_proxy_on_os_packages
|
||||
|
||||
- name: Install python3 on fedora
|
||||
raw: "dnf install --assumeyes --quiet python3"
|
||||
|
||||
Reference in New Issue
Block a user