Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-repository: Do not delete the 'epel-release' package if it is installed (RHEL) #567

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
RHEL: Do not delete the 'epel-release' package if it is installed.
vitabaks committed Feb 2, 2024
commit ebb6ff0f15e7d9cf69466ae0c1d7ad89d035965e
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"