Skip to content
Snippets Groups Projects
Commit dfdf5307 authored by Anton Patsev's avatar Anton Patsev Committed by k8s-ci-robot
Browse files

Fix work yum in Install packages requirements for bootstrap (#3630)

* Fix Failure talking to yum: Cannot find a valid baseurl for repo: base/7/x86_64 if Install packages in CentOS using proxy

* Add proxy to /etc/yum.conf if http_proxy is defined
parent 33f33a73
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,14 @@
state: present
when: fastestmirror.stat.exists
- name: Add proxy to /etc/yum.conf if http_proxy is defined
lineinfile:
path: "/etc/yum.conf"
line: "proxy={{http_proxy}}"
create: yes
state: present
when: http_proxy is defined
- name: Install packages requirements for bootstrap
yum:
name: "{{ packages }}"
......@@ -27,4 +35,3 @@
yum:
name: python-pip
state: present
environment: "{{proxy_env}}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment