Files
ansible-role-repo-epel/molecule/mirror-is-set/converge.yml
Aaron Guise 4a0ba94b38
Some checks failed
CI / lint (push) Successful in 28s
CI / Molecule Test (almalinux8) (push) Failing after 47s
CI / release (push) Has been skipped
CI / notify (push) Has been skipped
fix: Remove EPEL if present on image 👷
2024-08-18 11:02:04 +12:00

20 lines
489 B
YAML

---
- 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:
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
vars:
epel_specify_mirror: true
epel_mirror_url: "{{ lookup('env', 'EPEL_MIRROR_URL') }}"