Install rhel7 rhev for power repo
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
7ff1f92c2c
commit
9e62167807
2 changed files with 12 additions and 0 deletions
4
files/common/rhel7-power-rhev.repo
Normal file
4
files/common/rhel7-power-rhev.repo
Normal file
|
@ -0,0 +1,4 @@
|
|||
[rhel7-rhev]
|
||||
name = rhel7 rhev $basearch
|
||||
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-for-rhev-power-agents-rpms
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
|
@ -7,6 +7,14 @@
|
|||
- packages
|
||||
- yumrepos
|
||||
|
||||
- name: put rhel rhev for power repos on rhel power systems
|
||||
copy: src="{{ files }}/common/rhel7-power-rhev.repo" dest="/etc/yum.repos.d/rhel7-power-rhev.repo"
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == 7 and ansible_architecture =='ppc64le'
|
||||
tags:
|
||||
- config
|
||||
- packages
|
||||
- yumrepos
|
||||
|
||||
- name: put epel repos on el systems
|
||||
copy: src="{{ files }}/common/epel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/epel{{ ansible_distribution_major_version }}.repo"
|
||||
when: ((ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and use_default_epel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue