Skip to content

Commit e4c6f32

Browse files
committed
add el7 support
1 parent 6e40296 commit e4c6f32

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
File renamed without changes.

files/epel7.repo

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[epel]
2+
name=Extra Packages for Enterprise Linux 7 - $basearch
3+
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
4+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
5+
failovermethod=priority
6+
enabled=1
7+
gpgcheck=0
8+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
9+
10+
[epel-debuginfo]
11+
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
12+
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
13+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
14+
failovermethod=priority
15+
enabled=0
16+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
17+
gpgcheck=1
18+
19+
[epel-source]
20+
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
21+
#baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
22+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
23+
failovermethod=priority
24+
enabled=0
25+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
26+
gpgcheck=1

meta/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ galaxy_info:
88
- name: EL
99
versions:
1010
- 6
11+
- 7
1112
- name: Fedora
1213
versions:
1314
- 19

tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
- name: Install the epel packages
77
yum: name=http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm state=present
88
when: ansible_os_family == "RedHat" and ansible_distribution != "Fedora"
9+
and ansible_distribution_major_version == "6"
10+
11+
- name: Install the epel packages
12+
yum: name=http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm state=present
13+
when: ansible_os_family == "RedHat" and ansible_distribution != "Fedora"
14+
and ansible_distribution_major_version == "7"
915

1016
- name: Install the Redis packages
1117
yum: name={{ item }} state=present

0 commit comments

Comments
 (0)