Skip to content

Commit e51c6df

Browse files
committed
Possible to disable configuration of epel and Oracle public-yum repos
1 parent 8ecab5b commit e51c6df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

common/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
repo_dir: /etc/yum.repos.d/
66
# default_user: ansible
77
install_os_packages: true
8+
configure_epel_repo: true
9+
configure_public_yum_repo: true
10+
811
common_packages:
912
- screen
1013
- facter

common/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818

1919
- name: Install EPEL Repo
2020
yum: name={{ epel_rpm }} state=installed
21+
when: configure_epel_repo
2122
tags:
2223
- epelrepo
2324

2425
- name: Get newest repo-file for OL6 (public-yum)
2526
get_url: dest={{ repo_dir}}/{{ ol6_repo_file }} url=http://public-yum.oracle.com/{{ ol6_repo_file }} backup=yes
26-
# when: ansible_lsb.id == 'OracleServer' and ansible_lsb.major_release|int == 6
27+
when: configure_public_yum_repo #and ansible_lsb.id == 'OracleServer' and ansible_lsb.major_release|int == 6
2728
tags:
2829
- ol6repo
2930

0 commit comments

Comments
 (0)