Skip to content

Commit

Permalink
Add support for enabling SCL repos
Browse files Browse the repository at this point in the history
  • Loading branch information
sdickenson committed Nov 21, 2023
1 parent 56fa905 commit a7c5ef6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ repos_location: /etc/yum.repos.d
# Enable / configure the EPEL repository for all RedHat-based distributions
repos_enable_epel: true

# Enable / configure the SCL repository for CentOS / Oracle Linux
repos_enable_scl: false

# Enable custom repos. These are a list of the following components:
# repos_custom_repos:
# - name: mysql-5.6-community
Expand Down
7 changes: 7 additions & 0 deletions tasks/centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@
state: latest
disable_excludes: all
when: ansible_distribution_major_version == '7' and repos_enable_epel

- name: install SCL repo (EL7)
yum:
name: centos-release-scl
state: latest
disable_excludes: all
when: ansible_distribution_major_version == '7' and repos_enable_scl
7 changes: 7 additions & 0 deletions tasks/oraclelinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@
disable_excludes: all
when: ansible_distribution_major_version == '7' and repos_enable_epel

- name: install SCL repo (EL7)
yum:
name: oracle-softwarecollection-release-el7
state: latest
disable_excludes: all
when: ansible_distribution_major_version == '7' and repos_enable_scl

0 comments on commit a7c5ef6

Please sign in to comment.