enable powertools repository for RedHat8
This commit is contained in:
parent
2722fc9613
commit
cb5929938d
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Reference in New Issue