2
0
Fork 0
This repository has been archived on 2023-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
ansible.fusioninventory/tasks/RedHat.yml

24 lines
659 B
YAML

---
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
# http://fusioninventory.org/documentation/agent/installation/linux/rhel.html
- name: Import EPEL GPG key
rpm_key:
key: "{{ fusioninventory__repo_gpgkey }}"
state: present
- name: Add EPEL Repository
yum:
name: "{{ fusioninventory__repo_package }}"
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