mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-27 23:57:02 +08:00
44 lines
1012 B
YAML
44 lines
1012 B
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
|
|
only_if: '$is_rhel'
|
|
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
|
|
only_if: "$is_fedora and '${ansible_architecture}'.startswith('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
|
|
only_if: "$is_fedora and '${ansible_architecture}'.startswith('armv7l')"
|
|
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
|
|
|