Add EPEL ARM template
This commit is contained in:
parent
d8b200cd6c
commit
2fbfa71705
2 changed files with 13 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
- name: Include vars for {{ ansible_os_family }}
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Install repo definition packages for {{ ansible_os_family }}
|
||||
- name: Install EPEL repo definition packages for {{ ansible_os_family }} on x86_64 and aarch64 plateform
|
||||
package: name="{{ item }}" update_cache=yes state=latest
|
||||
with_items:
|
||||
- epel-release
|
||||
|
|
@ -11,6 +11,12 @@
|
|||
- not ansible_machine == "armv7l"
|
||||
- not ansible_machine == "armv6l"
|
||||
|
||||
- name: Install EPEL repo definition for {{ ansible_os_family }} on ARM 32b plateform
|
||||
template: src=etc/yum.repos.d/epel_arm.repo.j2 dst=/etc/yum.repos.d/epel.repo owner=root group=root mode=0644
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_machine == "armv7l" or ansible_machine == "armv6l"
|
||||
|
||||
- name: Install base packages for {{ ansible_os_family }}
|
||||
package: name="{{ base_packages }}" update_cache=yes state=latest
|
||||
|
||||
|
|
|
|||
6
templates/etc/yum.repos.d/epel_arm.repo.j2
Normal file
6
templates/etc/yum.repos.d/epel_arm.repo.j2
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[epel]
|
||||
name=Epel rebuild for armhfp
|
||||
baseurl=https://armv7.dev.centos.org/repodir/epel-pass-1/
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue