Installs the EPEL repository (Extra Packages for Enterprise Linux) for RHEL/CentOS.
Available variables are listed below, along with default values (see defaults/main.yml
):
epel_repo_file: "/etc/yum.repos.d/epel.repo"
epel_repo_url: "https://dl.fedoraproject.org/pub/epel/$releasever/$basearch/"
epel_gpg_file: "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
epel_gpg_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
epel_gpg_check: "yes"
epel_satellite: false #change to true when you want to get EPEL packages from an internal Satellite mirror
epel_satellite_label: "" #when epel_satellite is true: add repo with subscription-manager
# false: remove repo with subscription-manager
None.
This function implements tests with Molecule together with the ansible
and podman
modules. Notice that we only support Molecule 2.0 or greater.
Additionally, until this moment we only support role running the molecule default scenario and Each new PR will run this test like de pre-validation tests.
You can install molecule with:
python3 -m pip install "molecule[podman,lint]" "ansible" "podman" "ansible-lint"
After having Molecule setup, you can run the tests with this step:
molecule test
- hosts: servers
roles:
- stone-payments.epel
MIT