Disalbe install epel-release rpm on Centos/Redhat
1.Disalbe install epel-release rpm on Centos/Redhat 2.Use yum install epel-releasepull/2266/head
parent
2ae68df41b
commit
47adf4bce6
|
@ -33,7 +33,7 @@ dependencies:
|
||||||
- apps
|
- apps
|
||||||
- local_volume_provisioner
|
- local_volume_provisioner
|
||||||
- storage
|
- storage
|
||||||
|
|
||||||
# istio role should be last because it takes a long time to initialize and
|
# istio role should be last because it takes a long time to initialize and
|
||||||
# will cause timeouts trying to start other addons.
|
# will cause timeouts trying to start other addons.
|
||||||
- role: kubernetes-apps/istio
|
- role: kubernetes-apps/istio
|
||||||
|
@ -41,7 +41,7 @@ dependencies:
|
||||||
tags:
|
tags:
|
||||||
- apps
|
- apps
|
||||||
- istio
|
- istio
|
||||||
|
|
||||||
- role: kubernetes-apps/persistent_volumes
|
- role: kubernetes-apps/persistent_volumes
|
||||||
when: persistent_volumes_enabled
|
when: persistent_volumes_enabled
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -4,8 +4,7 @@ run_gitinfos: false
|
||||||
# Set to true to allow pre-checks to fail and continue deployment
|
# Set to true to allow pre-checks to fail and continue deployment
|
||||||
ignore_assert_errors: false
|
ignore_assert_errors: false
|
||||||
|
|
||||||
epel_rpm_download_url: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
|
epel_enabled: false
|
||||||
epel_enabled: true
|
|
||||||
|
|
||||||
common_required_pkgs:
|
common_required_pkgs:
|
||||||
- python-httplib2
|
- python-httplib2
|
||||||
|
|
|
@ -172,18 +172,13 @@
|
||||||
- bootstrap-os
|
- bootstrap-os
|
||||||
|
|
||||||
- name: Install epel-release on RedHat/CentOS
|
- name: Install epel-release on RedHat/CentOS
|
||||||
shell: rpm -qa | grep epel-release || rpm -ivh {{ epel_rpm_download_url }}
|
yum:
|
||||||
register: epel_task_result
|
name: epel-release
|
||||||
until: epel_task_result|succeeded
|
state: present
|
||||||
retries: 4
|
|
||||||
delay: "{{ retry_stagger | random + 3 }}"
|
|
||||||
changed_when: False
|
|
||||||
when:
|
when:
|
||||||
- ansible_distribution in ["CentOS","RedHat"]
|
- ansible_distribution in ["CentOS","RedHat"]
|
||||||
- not is_atomic
|
- not is_atomic
|
||||||
- epel_rpm_download_url != ''
|
|
||||||
- epel_enabled|bool
|
- epel_enabled|bool
|
||||||
check_mode: no
|
|
||||||
tags:
|
tags:
|
||||||
- bootstrap-os
|
- bootstrap-os
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue