Giter VIP home page Giter VIP logo

ansible_role_epel's Introduction

MIT License Ansible Galaxy Ansible check centos:latest

role_install-epel-release

Ansible role to install the Extra Packages for Enterprise Linux (EPEL) - Repository on RHEL and centos.

What do we do here?

  • First we read the variables you configured and our default values.
  • If enabled (default to false), we do a simple version-check that will validate that you never run a older version of this role after you run this role before.
  • We validate that the GPG key of the EPEL repo for your distribution release is installed and match the fingerprint in the config.
  • We install the epel repo from a remote URL.

example useage of this role

You can either use this role via ansible galaxy or by downloading this role manually.

ansible galaxy: install this role

ansible-galaxy install do1jlr.epel

ansible-galaxy: example playbook

---
- name: install epel release
  hosts: srv01.example.com
  roles:
    - do1jlr.epel

manual download role

# download to your roles directory
git clone https://github.com/roles-ansible/role_install-epel-release.git

manual example playbook

---
- name: Install epel release
  hosts: srv02.example.com
  tags:
   - epel
  vars:
    submodules_versioncheck: true
  roles:
    - role_install-epel-release

variables and configuration

Here a our default values you can overwrite:

# do we want a simple versionscheck? (true is recomended)
submodules_versioncheck: false

# epel repo
epel_repo:
  url: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
  gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
  gpg_key_path: "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
  fingerprint:
    '6': "8C3B E96A F230 9184 DA5C 0DAE 3B49 DF2A 0608 B895"
    '7': "91E9 7D7C 4A5E 96F1 7F3E 888F 6A2F AEA2 352C 64E5"
    '8': "94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1"

Testing

This role is tested with these github-action tests for different versions of centos. Linting is tested via travis-ci. If you want to find out more about our tests, please have a look at the github marketplace.

test status Github Marketplace
Galaxy release publish-ansible-role-to-galaxy
[Ansible check centos:latest ansible test with centos:latest
Ansible check centos:centos8 ansible test with centos 8
Ansible check centos:centos7 ansible test with centos 7
Yamllint GitHub Actions ansible linting test

ansible_role_epel's People

Contributors

do1jlr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.