mullholland.repository_elrepo

Ansible role repository_elrepo

Add the elrepo to your system

GitHub Downloads Version
github downloads Version

Example Playbook

This example is taken from molecule/default/converge.yml and is tested on each push, pull request and release.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true
  # vars:
  #   example_var: "value"
  roles:
    - role: "mullholland.repository_elrepo"

Role Variables

The default values for the variables are set in defaults/main.yml:

---
# Install the ELRepo
# https://elrepo.org/tiki/HomePage

# ELRepo public key
repository_elrepo_key_url: " https://www.elrepo.org/RPM-GPG-KEY-elrepo.org"

# ELRepo install packages
repository_elrepo_version_map:
  RedHat:
    "7": "https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm"
    "8": "https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm"
    "9": "https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm"
  CentOS:
    "7": "https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm"
    "8": "https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm"
    "9": "https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm"
  Rocky:
    "8": "https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm"
    "9": "https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm"
  AlmaLinux:
    "8": "https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm"
    "9": "https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm"

repository_elrepo_version: "{{ repository_elrepo_version_map[ansible_distribution][ansible_distribution_major_version] }}"

Requirements

Context

This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.

Here is an overview of related roles: dependencies

Compatibility

This role has been tested on these container images:

container tags
EL all

The minimum version of Ansible required is 2.10, tests have been done to:

  • The previous version.
  • The current version.
  • The development version.

If you find issues, please register them in GitHub.

License

MIT.

Author Information

Mullholland

About

Add the elrepo to your system

Install
ansible-galaxy install mullholland.repository_elrepo
GitHub repository
License
apache-2.0
Downloads
6k