From 4a0ba94b3810c6d1e663d8f51c902e2d9c2bcbf7 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Sun, 18 Aug 2024 11:02:04 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20Remove=20EPEL=20if=20present=20on=20imag?= =?UTF-8?q?e=20=F0=9F=91=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- molecule/default/converge.yml | 9 +++++++++ molecule/mirror-is-set/converge.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index e42e7dc..d6601a6 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -1,6 +1,15 @@ --- - name: Converge hosts: all + pre_tasks: + - name: Ensure EPEL is not present + yum: + name: epel-release + state: absent + + - name: Remove any traces of EPEL + shell: rm -f /etc/yum.repos.d/epel* + tasks: - name: "Include repo-epel" include_role: diff --git a/molecule/mirror-is-set/converge.yml b/molecule/mirror-is-set/converge.yml index ca46b68..17405e9 100644 --- a/molecule/mirror-is-set/converge.yml +++ b/molecule/mirror-is-set/converge.yml @@ -1,6 +1,15 @@ --- - name: Converge hosts: all + pre_tasks: + - name: Ensure EPEL is not present + yum: + name: epel-release + state: absent + + - name: Remove any traces of EPEL + shell: rm -f /etc/yum.repos.d/epel* + tasks: - name: "Include repo-almalinux" include_role: