Browse Source
Merge pull request #2266 from riverzhang/epel-release
Disalbe install epel-release rpm on Centos/Redhat
pull/2267/merge
Aivars Sterns
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
10 deletions
-
roles/kubernetes/preinstall/defaults/main.yml
-
roles/kubernetes/preinstall/tasks/main.yml
|
@ -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: true |
|
|
|
|
|
|
|
|
epel_enabled: false |
|
|
|
|
|
|
|
|
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 }} |
|
|
|
|
|
register: epel_task_result |
|
|
|
|
|
until: epel_task_result|succeeded |
|
|
|
|
|
retries: 4 |
|
|
|
|
|
delay: "{{ retry_stagger | random + 3 }}" |
|
|
|
|
|
changed_when: False |
|
|
|
|
|
|
|
|
yum: |
|
|
|
|
|
name: epel-release |
|
|
|
|
|
state: present |
|
|
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 |
|
|
|
|
|
|
|
|