diff --git a/files/common/rhel7-power-rhev.repo b/files/common/rhel7-power-rhev.repo new file mode 100644 index 0000000000..c801acdef8 --- /dev/null +++ b/files/common/rhel7-power-rhev.repo @@ -0,0 +1,4 @@ +[rhel7-rhev] +name = rhel7 rhev $basearch +baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-for-rhev-power-agents-rpms +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index 74affb986e..174cc98cf7 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -7,6 +7,14 @@ - packages - yumrepos +- 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' + tags: + - config + - packages + - yumrepos + - name: put epel repos on el systems copy: src="{{ files }}/common/epel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/epel{{ ansible_distribution_major_version }}.repo" when: ((ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and use_default_epel)