Ticket #13631: 0001-configure-rpmfusion-for-use-with-el7-in-addition-to-.patch

File 0001-configure-rpmfusion-for-use-with-el7-in-addition-to-.patch, 2.3 KB (added by Gary Buhrmaster, 4 years ago)

Configure rpmfusion for use with el7

  • roles/mythtv-rpm/tasks/main.yml

    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  
    44  when:    ansible_distribution == "CentOS"
    55
    66- include: setup-rpmfusion.yml
    7   when:    ansible_distribution == "Fedora"
     7  when:    ansible_distribution == "Fedora" or ansible_distribution == "CentOS"
    88
    99- name: create a list of compilers and build essentials
    1010  set_fact:
  • roles/mythtv-rpm/tasks/setup-rpmfusion.yml

    diff --git a/roles/mythtv-rpm/tasks/setup-rpmfusion.yml b/roles/mythtv-rpm/tasks/setup-rpmfusion.yml
    index 2ea086b..1594575 100644
    a b  
    33- shell:            /bin/rpm -q --quiet rpmfusion-free-release && echo installed || echo missing
    44  register:         rpmfusion
    55
    6 - name: setup RPMfusion repository
     6- name: setup RPMFusion repository for Fedora
    77  command: yum localinstall -y --nogpgcheck {{ rpmfusion_rpm }}
    88  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"
  • roles/mythtv-rpm/vars/main.yml

    diff --git a/roles/mythtv-rpm/vars/main.yml b/roles/mythtv-rpm/vars/main.yml
    index c8fc772..095a98b 100644
    a b  
    22
    33epel_rpm: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
    44
     5rpmfusion_el_rpm: "https://download1.rpmfusion.org/free/el/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
     6
    57rpmfusion_rpm: "http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
    68
    79lame_src: " http://download1.rpmfusion.org/free/el/updates/6/SRPMS/lame-3.99.5-1.el6.src.rpm"