2
0
Fork 0

enable powertools repository for RedHat8

This commit is contained in:
Mathieu Jourdan 2021-03-15 12:11:47 +01:00
parent 2722fc9613
commit cb5929938d
2 changed files with 14 additions and 0 deletions

View File

@ -12,3 +12,12 @@
yum: yum:
name: "{{ fusioninventory__repo_package }}" name: "{{ fusioninventory__repo_package }}"
state: present state: present
- name: Enable PowerTools Repository
ini_file:
path: "{{ fusioninventory__powertools_repo_file }}"
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
loop: "{{ fusioninventory__powertools_repo_params }}"
when: ansible_facts['distribution_major_version'] | int >= 8

View File

@ -13,3 +13,8 @@ fusioninventory__agent_packages:
fusioninventory__repo_package: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm" fusioninventory__repo_package: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
fusioninventory__repo_gpgkey: "https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}" fusioninventory__repo_gpgkey: "https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
fusioninventory__powertools_repo_file: "/etc/yum.repos.d/{{ ansible_distribution }}-PowerTools.repo"
fusioninventory__powertools_repo_params:
- section: PowerTools
option: enabled
value: "1"