install epel repo from package
This commit is contained in:
parent
d4eb45dc03
commit
2722fc9613
|
@ -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
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Reference in New Issue