From ebb6ff0f15e7d9cf69466ae0c1d7ad89d035965e Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 2 Feb 2024 13:30:47 +0000 Subject: [PATCH] RHEL: Do not delete the 'epel-release' package if it is installed. --- roles/add-repository/tasks/main.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/roles/add-repository/tasks/main.yml b/roles/add-repository/tasks/main.yml index 856e068bd..a20920875 100644 --- a/roles/add-repository/tasks/main.yml +++ b/roles/add-repository/tasks/main.yml @@ -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"