mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user