[mythtv-commits] Ticket #13492: Ansible patch to enable PowerTools repo for epel8

MythTV noreply at mythtv.org
Sun Oct 13 09:36:43 UTC 2019


#13492: Ansible patch to enable PowerTools repo for epel8
----------------------------------+--------------------------
     Reporter:  Gary Buhrmaster   |      Owner:  (none)
         Type:  Patch - Feature   |     Status:  new
     Priority:  minor             |  Milestone:  needs_triage
    Component:  MythTV - General  |    Version:  Master Head
     Severity:  medium            |   Keywords:
Ticket locked:  0                 |
----------------------------------+--------------------------
 Ansible patch to enable the CentOS PowerTools repo when installing EPEL
 (required per documentation due to EPEL dependencies).

 Note: (as before) This should be considered just a preparatory patch (it
 is not sufficient, as packages from RH/CentOS and EPEL8 are still
 pending).

 (Lightly) tested on CentOS 8 system.

 Depends on: #13490 #13491


 {{{
 diff --git a/roles/mythtv-dnf/tasks/setup-epel.yml b/roles/mythtv-
 dnf/tasks/setup-epel.yml
 index cfd5b26..18ad347 100644
 --- a/roles/mythtv-dnf/tasks/setup-epel.yml
 +++ b/roles/mythtv-dnf/tasks/setup-epel.yml
 @@ -6,3 +6,11 @@
  - name: setup EPEL repository
    command: dnf install -y --nogpgcheck {{ epel_rpm }}
    when: epel.stdout == "missing"
 +
 +- name: check if CentOS PowerTools repo enabled
 +  shell:            /usr/bin/dnf -q repolist --enabled PowerTools && echo
 disabled || echo enabled
 +  register:         powertools
 +
 +- name: enable CentOS PowerTools repository for epel
 +  command: dnf config-manager --set-enabled PowerTools
 +  when: powertools.stdout == "disabled"
 }}}

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13492>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list