Skip to content
Snippets Groups Projects
Unverified Commit 9f4588cd authored by Aivars Sterns's avatar Aivars Sterns Committed by GitHub
Browse files

Merge pull request #2266 from riverzhang/epel-release

Disalbe install epel-release rpm on Centos/Redhat
parents cae1c683 47adf4bc
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,7 @@ run_gitinfos: false
# Set to true to allow pre-checks to fail and continue deployment
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:
- python-httplib2
......
......@@ -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
......
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