From 23b12770d0f07b382f1ffd691b0e3bb3d501f64c Mon Sep 17 00:00:00 2001
From: Gary Buhrmaster <gary.buhrmaster@gmail.com>
Date: Fri, 5 Jun 2020 16:59:08 -0400
Subject: [PATCH 1/7] configure rpmfusion for use with el7 in addition to
fedora
---
roles/mythtv-rpm/tasks/main.yml | 2 +-
roles/mythtv-rpm/tasks/setup-rpmfusion.yml | 6 +++++-
roles/mythtv-rpm/vars/main.yml | 2 ++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/roles/mythtv-rpm/tasks/main.yml b/roles/mythtv-rpm/tasks/main.yml
index c3ea410..52d2219 100644
a
|
b
|
|
4 | 4 | when: ansible_distribution == "CentOS" |
5 | 5 | |
6 | 6 | - include: setup-rpmfusion.yml |
7 | | when: ansible_distribution == "Fedora" |
| 7 | when: ansible_distribution == "Fedora" or ansible_distribution == "CentOS" |
8 | 8 | |
9 | 9 | - name: create a list of compilers and build essentials |
10 | 10 | set_fact: |
diff --git a/roles/mythtv-rpm/tasks/setup-rpmfusion.yml b/roles/mythtv-rpm/tasks/setup-rpmfusion.yml
index 2ea086b..1594575 100644
a
|
b
|
|
3 | 3 | - shell: /bin/rpm -q --quiet rpmfusion-free-release && echo installed || echo missing |
4 | 4 | register: rpmfusion |
5 | 5 | |
6 | | - name: setup RPMfusion repository |
| 6 | - name: setup RPMFusion repository for Fedora |
7 | 7 | command: yum localinstall -y --nogpgcheck {{ rpmfusion_rpm }} |
8 | 8 | when: ansible_distribution == "Fedora" and rpmfusion.stdout == "missing" |
| 9 | |
| 10 | - name: setup RPMFusion repository for CentOS |
| 11 | command: yum localinstall -y --nogpgcheck {{ rpmfusion_el_rpm }} |
| 12 | when: ansible_distribution == "CentOS" and rpmfusion.stdout == "missing" |
diff --git a/roles/mythtv-rpm/vars/main.yml b/roles/mythtv-rpm/vars/main.yml
index c8fc772..095a98b 100644
a
|
b
|
|
2 | 2 | |
3 | 3 | epel_rpm: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" |
4 | 4 | |
| 5 | rpmfusion_el_rpm: "https://download1.rpmfusion.org/free/el/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm" |
| 6 | |
5 | 7 | rpmfusion_rpm: "http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm" |
6 | 8 | |
7 | 9 | lame_src: " http://download1.rpmfusion.org/free/el/updates/6/SRPMS/lame-3.99.5-1.el6.src.rpm" |