Add rhel7/epel7 to yumrepos task

This commit is contained in:
Kevin Fenzi 2014-06-20 23:18:51 +00:00
parent ddefe1d6c2
commit 8a608531a0
3 changed files with 46 additions and 2 deletions

View file

@ -1,10 +1,20 @@
---
- name: put rhel repos on system
- 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'
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == 6
tags:
- config
- packages
- 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' and ansible_distribution_major_version == 7
tags:
- config
- packages