ansible/tasks/yumrepos.yml
2014-02-28 19:36:41 +00:00

42 lines
1.1 KiB
YAML

---
- name: put rhel repos on system
action: copy src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
with_items:
- epel6.repo
- rhel6.repo
when: ansible_distribution == 'RedHat'
tags:
- config
- packages
- name: put fedora repos on x86 systems
action: 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'
tags:
- config
- packages
- name: put fedora repos on arm systems
action: copy src="{{ files }}/common/{{ item }}-arm" dest="/etc/yum.repos.d/{{ item }}"
with_items:
- fedora.repo
- fedora-updates.repo
- fedora-updates-testing.repo
when: ansible_distribution == 'Fedora' and ansible_architecture == 'armv7l' and not inventory_hostname.startswith('arm03')
tags:
- config
- packages
- name: add infrastructure repo
action: copy src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
with_items:
- infrastructure.repo
- infrastructure-testing.repo
tags:
- config
- packages