Adding option for epel install and cleaning up section

This commit is contained in:
Tyler Hale 2022-08-22 14:18:13 -06:00
parent 65c015112d
commit 74dce7893f
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96
3 changed files with 7 additions and 1 deletions

View file

@ -97,6 +97,11 @@ base_debian_automatic_updates_reboot: "03:30"
base_redhat_subscription_activationkey: ""
base_redhat_subscription_org_id: ""
# EPEL
# =============
base_redhat_epel: true
# DNF Automatic
# =============

View file

@ -12,7 +12,7 @@
file: redhat_epel.yml
apply:
tags: epel
when: ansible_distribution == 'RedHat'
when: base_redhat_epel == true
tags:
- epel

View file

@ -6,3 +6,4 @@
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
disable_gpg_check: True
when: ansible_distribution == 'RedHat' or ansible_distribution == 'AlmaLinux'