ansible/tasks/yumrepos.yml
Patrick Uiterwijk 8252b00d92 Infra-tags are also applicable to non-EPEL boxes
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-09-25 20:05:49 +00:00

74 lines
2.6 KiB
YAML

---
- 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'
tags:
- config
- 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)
tags:
- config
- packages
- yumrepos
- name: put fedora repos on primary architecture systems
copy: src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
with_items:
- fedora.repo
- fedora-updates.repo
- fedora-updates-testing.repo
when: ansible_distribution == 'Fedora' and (ansible_architecture == 'x86_64' or ansible_architecture == 'i386' or ansible_architecture == 'armv7l') and not inventory_hostname.startswith('arm03') and not inventory_hostname.startswith('jenkins-slave-f24')
tags:
- config
- packages
- yumrepos
- name: put fedora repos on secondary architecture systems
copy: src="{{ files }}/common/{{ item }}-secondary" dest="/etc/yum.repos.d/{{ item }}"
with_items:
- fedora.repo
- fedora-updates.repo
- fedora-updates-testing.repo
when: ansible_distribution == 'Fedora' and (ansible_architecture == 'aarch64' or ansible_architecture == 'ppc64' or ansible_architecture == 'ppc64le')
tags:
- config
- packages
- yumrepos
- name: add infrastructure repo
copy: src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
with_items:
- infrastructure.repo
- infrastructure-testing.repo
tags:
- config
- packages
- yumrepos
- name: add infrastructure tags repo - RHEL
copy: src="{{ files }}/common/rhel-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo"
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
tags:
- config
- packages
- yumrepos
- name: add infrastructure tags repo - Fedora
copy: src="{{ files }}/common/fedora-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo"
when: ansible_distribution == 'Fedora'
tags:
- config
- packages
- yumrepos