diff --git a/files/common/rhel7-power9.repo b/files/common/rhel7-power9.repo new file mode 100644 index 0000000000..ce104500b7 --- /dev/null +++ b/files/common/rhel7-power9.repo @@ -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 diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index 9365063550..0bfbefaf6a 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -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