2
0
Fork 0

install epel repo from package

This commit is contained in:
Mathieu Jourdan 2021-03-15 11:41:37 +01:00
parent d4eb45dc03
commit 2722fc9613
2 changed files with 11 additions and 5 deletions

View File

@ -3,9 +3,12 @@
# 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_repository:
name: Epel
description: EPEL YUM repo
baseurl: https://download.fedoraproject.org/pub/epel/$releasever/$basearch/
gpgkey: https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}
yum:
name: "{{ fusioninventory__repo_package }}"
state: present

View File

@ -10,3 +10,6 @@ fusioninventory__agent_depend_packages:
fusioninventory__agent_packages:
- 'fusioninventory-agent'
- 'fusioninventory-agent-task-inventory'
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 }}"