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:
parent
69071fe4f9
commit
7f6b3a59dc
2 changed files with 29 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue