Disalbe install epel-release rpm on Centos/Redhat

1.Disalbe install epel-release rpm on Centos/Redhat
2.Use yum install epel-release
This commit is contained in:
rong.zhang
2018-02-07 14:53:09 +08:00
parent 2ae68df41b
commit 47adf4bce6
3 changed files with 6 additions and 12 deletions

View File

@@ -172,18 +172,13 @@
- bootstrap-os
- 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:
- ansible_distribution in ["CentOS","RedHat"]
- not is_atomic
- epel_rpm_download_url != ''
- epel_enabled|bool
check_mode: no
tags:
- bootstrap-os