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
|
- name: put rhel repos on rhel systems
|
||||||
action: copy src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
|
action: copy src="{{ files }}/common/rhel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/rhel{{ ansible_distribution_major_version }}.repo"
|
||||||
with_items:
|
when: ansible_distribution == 'RedHat'
|
||||||
- epel6.repo
|
|
||||||
- rhel6.repo
|
|
||||||
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and ansible_distribution_major_version|int == 6
|
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- packages
|
- packages
|
||||||
- yumrepos
|
- yumrepos
|
||||||
|
|
||||||
- name: put rhel repos on rhel7 systems
|
- name: put epel repos on el systems
|
||||||
action: copy src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
|
action: copy src="{{ files }}/common/epel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/epel{{ ansible_distribution_major_version }}.repo"
|
||||||
with_items:
|
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
|
||||||
- epel7.repo
|
|
||||||
- rhel7.repo
|
|
||||||
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and ansible_distribution_major_version|int == 7
|
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- packages
|
- packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue