diff --git a/defaults/main.yaml b/defaults/main.yaml index 0526290..c44336b 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -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 diff --git a/tasks/centos.yaml b/tasks/centos.yaml index a665e57..cc4635d 100644 --- a/tasks/centos.yaml +++ b/tasks/centos.yaml @@ -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 diff --git a/tasks/oraclelinux.yaml b/tasks/oraclelinux.yaml index ef70e3c..23b18c8 100644 --- a/tasks/oraclelinux.yaml +++ b/tasks/oraclelinux.yaml @@ -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 +