From 9a6925fabfca5cce708aaa037f82ce83e098b0c4 Mon Sep 17 00:00:00 2001
From: Gary Buhrmaster <gary.buhrmaster@gmail.com>
Date: Sun, 7 Jun 2020 15:50:15 -0400
Subject: [PATCH 7/7] enable software collections and install devtoolset-9 for
el7
---
roles/mythtv-rpm/tasks/main.yml | 10 ++++++++++
roles/mythtv-rpm/tasks/setup-scl.yml | 8 ++++++++
2 files changed, 18 insertions(+)
create mode 100644 roles/mythtv-rpm/tasks/setup-scl.yml
diff --git a/roles/mythtv-rpm/tasks/main.yml b/roles/mythtv-rpm/tasks/main.yml
index 062cd1d..9352893 100644
a
|
b
|
|
6 | 6 | - include: setup-rpmfusion.yml |
7 | 7 | when: ansible_distribution == "Fedora" or ansible_distribution == "CentOS" |
8 | 8 | |
| 9 | - include: setup-scl.yml |
| 10 | when: ansible_distribution == "CentOS" |
| 11 | |
9 | 12 | - name: create a list of compilers and build essentials |
10 | 13 | set_fact: |
11 | 14 | yum_pkg_lst: |
… |
… |
|
129 | 132 | - mysql-devel |
130 | 133 | - minizip-devel |
131 | 134 | |
| 135 | - name: add devtoolset-9 for CentOS |
| 136 | set_fact: |
| 137 | yum_pkg_lst: |
| 138 | - '{{ yum_pkg_lst }}' |
| 139 | - devtoolset-9 |
| 140 | when: ansible_distribution == "CentOS" |
| 141 | |
132 | 142 | - name: final package list |
133 | 143 | debug: |
134 | 144 | msg: |
diff --git a/roles/mythtv-rpm/tasks/setup-scl.yml b/roles/mythtv-rpm/tasks/setup-scl.yml
new file mode 100644
index 0000000..f86651a
-
|
+
|
|
| 1 | # roles/mythtv-rpm/tasks/setup-scl.yml |
| 2 | |
| 3 | - name: setup SCL repositories for CentOS |
| 4 | yum: |
| 5 | name: |
| 6 | 'centos-release-scl,centos-release-scl-rh' |
| 7 | state: |
| 8 | present |