Put rhel* only on RHEL and epel* on el*
This commit is contained in:
parent
a57e7505b7
commit
b38aeb28de
1 changed files with 6 additions and 12 deletions
|
@ -1,21 +1,15 @@
|
|||
---
|
||||
- name: put rhel repos on rhel6 systems
|
||||
action: copy src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
|
||||
with_items:
|
||||
- epel6.repo
|
||||
- rhel6.repo
|
||||
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and ansible_distribution_major_version|int == 6
|
||||
- name: put rhel repos on rhel systems
|
||||
action: 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 repos on rhel7 systems
|
||||
action: copy src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
|
||||
with_items:
|
||||
- epel7.repo
|
||||
- rhel7.repo
|
||||
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and ansible_distribution_major_version|int == 7
|
||||
- name: put epel repos on el systems
|
||||
action: 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')
|
||||
tags:
|
||||
- config
|
||||
- packages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue