2013-05-20 17:14:56 +00:00
---
2015-10-12 14:12:06 +00:00
- name : put rhel repos on rhel systems
2016-01-06 21:25:10 +00:00
copy : src="{{ files }}/common/rhel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/rhel{{ ansible_distribution_major_version }}.repo"
2015-10-12 14:12:06 +00:00
when : ansible_distribution == 'RedHat'
2014-06-20 23:18:51 +00:00
tags :
- config
- packages
2014-09-30 00:03:50 +00:00
- yumrepos
2014-06-20 23:18:51 +00:00
2016-07-15 12:52:35 +00:00
- 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
2017-05-11 16:26:10 +00:00
- name : put openshift 3.4 repo on os- systems
copy : src="{{ files }}/openshift/openshift.repo" dest="/etc/yum.repos.d/openshift.repo"
when : ansible_distribution == 'RedHat' and ansible_distribution_major_version == 7 and inventory_hostname.startswith('os-')
tags :
- config
- packages
- yumrepos
2015-10-12 14:12:06 +00:00
- name : put epel repos on el systems
2016-01-06 21:25:10 +00:00
copy : src="{{ files }}/common/epel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/epel{{ ansible_distribution_major_version }}.repo"
2015-12-20 01:57:27 +00:00
when : ((ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and use_default_epel)
2013-05-20 17:14:56 +00:00
tags :
- config
- packages
2014-09-30 00:03:50 +00:00
- yumrepos
2013-05-20 17:14:56 +00:00
2018-05-08 19:53:52 +00:00
- name : put fedora repos on primary architecture systems
template : src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
2013-09-05 02:11:53 +00:00
with_items :
- fedora.repo
- fedora-updates.repo
- fedora-updates-testing.repo
2018-06-08 22:29:28 +00:00
when : ansible_distribution == 'Fedora' and (ansible_architecture == 'aarch64' or ansible_architecture == 'x86_64' or ansible_architecture == 'i386' or ansible_architecture == 'armv7l') and not inventory_hostname.startswith('arm03') and not inventory_hostname.startswith('wiki01.stg')
2013-09-05 02:11:53 +00:00
tags :
- config
- packages
2014-09-30 00:03:50 +00:00
- yumrepos
2013-09-05 02:11:53 +00:00
2018-11-20 20:13:37 +00:00
- name : put fedora modular repos on primary architecture systems
template : src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
with_items :
- fedora-modular.repo
- fedora-updates-modular.repo
- fedora-updates-testing-modular.repo
when : ansible_distribution == 'Fedora' and ansible_distribution_major_version >= 29 and (ansible_architecture == 'aarch64' or ansible_architecture == 'x86_64' or ansible_architecture == 'i386' or ansible_architecture == 'armv7l') and not inventory_hostname.startswith('arm03') and not inventory_hostname.startswith('wiki01.stg')
tags :
- config
- packages
- yumrepos
2015-03-24 23:00:54 +00:00
- name : put fedora repos on secondary architecture systems
2018-05-08 20:01:28 +00:00
template : src="{{ files }}/common/{{ item }}-secondary" dest="/etc/yum.repos.d/{{ item }}"
2015-03-24 22:12:02 +00:00
with_items :
- fedora.repo
- fedora-updates.repo
- fedora-updates-testing.repo
2018-06-08 22:29:28 +00:00
when : ansible_distribution == 'Fedora' and (ansible_architecture == 'ppc64' or ansible_architecture == 'ppc64le' or ansible_architecture == 's390x')
2015-03-24 22:12:02 +00:00
tags :
- config
- packages
- yumrepos
2018-11-20 20:13:37 +00:00
- name : put fedora repos on secondary architecture systems
template : src="{{ files }}/common/{{ item }}-secondary" dest="/etc/yum.repos.d/{{ item }}"
with_items :
- fedora-modular.repo
- fedora-updates-modular.repo
- fedora-updates-testing-modular.repo
when : ansible_distribution == 'Fedora' and ansible_distribution_major_version >= 29 and (ansible_architecture == 'ppc64le' or ansible_architecture == 's390x')
tags :
- config
- packages
- yumrepos
2017-06-20 22:52:56 +00:00
- 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"
2019-01-18 09:21:53 -08:00
when : (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and inventory_hostname.startswith('aarch64-c') and ansible_distribution_major_version == 7
2019-01-17 21:05:00 +00:00
tags :
- config
- packages
- yumrepos
- name : add aarch64 server rpms repo
copy : src="{{ files }}/common/rhel-8-aarch64-server-rpms.repo" dest="/etc/yum.repos.d/rhel-8-aarch64-server-rpms.repo"
2019-01-18 09:21:53 -08:00
when : (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and inventory_hostname.startswith('aarch64-c') and ansible_distribution_major_version == 8
2017-06-20 22:52:56 +00:00
tags :
- config
- packages
- yumrepos
2016-09-25 17:08:37 +00:00
- name : add infrastructure tags repo - RHEL
2016-09-25 17:16:11 +00:00
copy : src="{{ files }}/common/rhel-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo"
2016-09-25 20:05:49 +00:00
when : (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
2016-09-25 17:08:37 +00:00
tags :
- config
- packages
- yumrepos
2017-02-16 19:53:14 +00:00
- name : add infrastructure STAGING tags repo - RHEL
copy : src="{{ files }}/common/rhel-infra-tags-stg.repo" dest="/etc/yum.repos.d/infra-tags-stg.repo"
2017-10-11 21:28:12 +02:00
when : (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and env in ['staging', 'pagure-staging']
2017-02-16 19:53:14 +00:00
tags :
- config
- packages
- yumrepos
2016-09-25 17:08:37 +00:00
- name : add infrastructure tags repo - Fedora
2018-05-19 22:51:38 +00:00
copy : src="{{ files }}/common/fedora-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo"
2018-11-24 19:57:14 +00:00
when : ansible_distribution == 'Fedora' and inventory_hostname not in groups['maintainer-test']
2016-09-25 17:08:37 +00:00
tags :
- config
- packages
- yumrepos
2017-02-16 19:53:14 +00:00
- name : add infrastructure STAGING tags repo - Fedora
copy : src="{{ files }}/common/fedora-infra-tags-stg.repo" dest="/etc/yum.repos.d/infra-tags-stg.repo"
2017-10-11 21:28:12 +02:00
when : ansible_distribution == 'Fedora' and env in ['staging', 'pagure-staging']
2017-02-16 19:53:14 +00:00
tags :
- config
- packages
- yumrepos
2017-08-02 08:54:05 +00:00
- name : Make sure older infrastructure tags repos no longer exist
file : path="/etc/yum.repos.d/{{item}}" state=absent
with_items :
- fedora-infra-tags.repo
- fedora-infra-tags-stg.repo
- rhel-infra-tags.repo
- rhel-infra-tags-stg.repo
- infrastructure.repo
- infrastructure-testing.repo
tags :
- config
- packages
- yumrepos