power9: add repos file to point to the right place and fix yumrepos to work with power9 hosts.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-03-22 04:36:31 +00:00
parent 69071fe4f9
commit 7f6b3a59dc
2 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,19 @@
[rhel7-power9-dvd]
name = rhel7-power9 base dvd
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/RHEL7.6-power9/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel7-power9-base]
name = rhel7-power9 base $basearch
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/power9/$basearch/rhel-7-server-power9
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel7-power9-optional]
name = rhel7-power9 optional $basearch
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/power9/$basearch/rhel-7-server-power9-optional
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel7-power9-extras]
name = rhel7-power9 extras $basearch
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/power9/$basearch/rhel-7-server-power9-extras
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

View File

@ -1,7 +1,15 @@
---
- name: put rhel repos on rhel systems
copy: src="{{ files }}/common/rhel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/rhel{{ ansible_distribution_major_version }}.repo"
when: ansible_distribution == 'RedHat'
when: ansible_distribution == 'RedHat' and not inventory_hostname.startswith('ppc9')
tags:
- config
- packages
- yumrepos
- name: put rhel repos on rhel systems (power9)
copy: src="{{ files }}/common/rhel{{ ansible_distribution_major_version }}-power9.repo" dest="/etc/yum.repos.d/rhel{{ ansible_distribution_major_version }}.repo"
when: ansible_distribution == 'RedHat' and inventory_hostname.startswith('ppc9')
tags:
- config
- packages
@ -9,7 +17,7 @@
- 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'
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == 7 and ansible_architecture =='ppc64le' and not inventory_hostname.startswith('ppc9')
tags:
- config
- packages