Skip to content

Commit

Permalink
add-repository: Do not delete the 'epel-release' package if it is ins…
Browse files Browse the repository at this point in the history
…talled (RHEL) (#567)
vitabaks authored Feb 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent be430e3 commit 3424f24
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions roles/add-repository/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -35,17 +35,6 @@
when: yum_repository | length > 0

# Install Epel Repository
- name: Remove epel-release package (if exists)
ansible.builtin.package:
name: epel-release
state: absent
register: package_status
until: package_status is success
delay: 5
retries: 3
when: install_epel_repo|bool
tags: install_epel_repo

- name: Get epel-release-latest rpm package
ansible.builtin.get_url:
url: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"

0 comments on commit 3424f24

Please sign in to comment.