Add rhel7/epel7 to yumrepos task
This commit is contained in:
parent
ddefe1d6c2
commit
8a608531a0
3 changed files with 46 additions and 2 deletions
20
files/common/epel7.repo
Normal file
20
files/common/epel7.repo
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
[epel]
|
||||||
|
name=Extras Packages for Enterprise Linux $releasever - $basearch
|
||||||
|
baseurl=http://infrastructure.fedoraproject.org/pub/epel/7/$basearch/
|
||||||
|
enabled=0
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=http://infrastructure.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
||||||
|
|
||||||
|
[epel-testing]
|
||||||
|
name=Extras Packages for Enterprise Linux $releasever - $basearch
|
||||||
|
baseurl=http://infrastructure.fedoraproject.org/pub/epel/testing/7/$basearch/
|
||||||
|
enabled=0
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=http://infrastructure.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
||||||
|
|
||||||
|
[epel-beta]
|
||||||
|
name=Extras Packages for Enterprise Linux beta $releasever - $basearch
|
||||||
|
baseurl=http://infrastructure.fedoraproject.org/pub/epel/beta/7/$basearch/
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=http://infrastructure.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
14
files/common/rhel7.repo
Normal file
14
files/common/rhel7.repo
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[rhel7-dvd]
|
||||||
|
name = rhel7 base dvd
|
||||||
|
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/RHEL7-$basearch/
|
||||||
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||||
|
|
||||||
|
[rhel7-base]
|
||||||
|
name = rhel7 base $basearch
|
||||||
|
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-server-rpms
|
||||||
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||||
|
|
||||||
|
[rhel7-optional]
|
||||||
|
name = rhel7 optional $basearch
|
||||||
|
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-server-optional-rpms
|
||||||
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
|
@ -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 }}"
|
action: copy src="{{ files }}/common/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- epel6.repo
|
- epel6.repo
|
||||||
- rhel6.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:
|
tags:
|
||||||
- config
|
- config
|
||||||
- packages
|
- packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue