Skip to content

Commit 924dac8

Browse files
author
Olivier Locard
authored
Merge pull request #11 from kurotoshiro/feature-CleanYumRepository
Replace the 2 tasks to add epel repo by a yum_repository task
2 parents e8f66c8 + c907405 commit 924dac8

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

tasks/install/CentOS.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
---
2-
- name: 'Check epel repo'
3-
shell: yum repolist | grep -qi EPEL
4-
register: epel_repo_check
5-
check_mode: false
6-
7-
- name: 'Add epel repo'
8-
template:
9-
src: "epel.repo"
10-
dest: "/etc/yum.repos.d/epel.repo"
11-
owner: "root"
12-
group: "root"
13-
mode: "0644"
14-
when: epel_repo_check is defined and epel_repo_check.rc != 0
2+
- name: 'Add epel repository'
3+
yum_repository:
4+
name: epel
5+
description: EPEL YUM repo
6+
baseurl: https://download.fedoraproject.org/pub/epel/$releasever/$basearch/
157

168
- name: Install HAProxy (yum)
179
yum:

0 commit comments

Comments
 (0)