Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stone-payments/ansible-epel

Role to install EPEL repository (Extra Packages for Enterprise Linux) for RHEL/CentOS.
https://github.com/stone-payments/ansible-epel

ansible epel evolucaoinfra

Last synced: 3 days ago
JSON representation

Role to install EPEL repository (Extra Packages for Enterprise Linux) for RHEL/CentOS.

Awesome Lists containing this project

README

        

# EPEL Repository

Installs the [EPEL repository](https://fedoraproject.org/wiki/EPEL) (Extra Packages for Enterprise Linux) for RHEL/CentOS.

## Role Variables

Available variables are listed below, along with default values (see `defaults/main.yml`):

```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
```

## Dependencies

None.

## Testing

This function implements tests with [Molecule](https://molecule.readthedocs.io/en/latest/index.html) 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
```

## Example Playbook

- hosts: servers
roles:
- stone-payments.epel

## License

MIT