diff --git a/files/common/rhel-7-aarch64-server-rpms.repo b/files/common/rhel-7-aarch64-server-rpms.repo new file mode 100644 index 0000000000..9d2447cb82 --- /dev/null +++ b/files/common/rhel-7-aarch64-server-rpms.repo @@ -0,0 +1,4 @@ +[rhel7-aarch64-server] +name = rhel7 $basearch server +baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-aarch64-server-rpms +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index af57783e79..37ab3d04d6 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -55,6 +55,14 @@ - packages - yumrepos +- name: add aarch64 server rpms repo + copy: src="{{ files }}/common/rhel-7-aarch64-server-rpms.repo" dest="/etc/yum.repos.d/rhel-7-aarch64-server-rpms.repo" + when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and inventory_hostname.startswith('aarch64-c' + tags: + - config + - packages + - yumrepos + - name: add infrastructure repo copy: src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}" with_items: