]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Make sure PowerTools repo is enabled on CentOS 742/head
authorDan Mick <dmick@redhat.com>
Fri, 2 Jun 2023 09:12:59 +0000 (02:12 -0700)
committerDan Mick <dmick@redhat.com>
Fri, 2 Jun 2023 09:16:57 +0000 (02:16 -0700)
https://github.com/ceph/ceph-cm-ansible/pull/731 removed the
custom-made repo files that added mirrorlists; however, it also
removed the side-effect of enabling the Power Tools repo (which
is not enabled by default).  This adds a call to dnf config-manager
to enable the repo, whatever its repo file name, on CentOS
testnodes.

Fixes: https://tracker.ceph.com/issues/59678
Signed-off-by: Dan Mick <dmick@redhat.com>
roles/testnode/tasks/yum/repos.yml

index 278d8d7f6ed0261d899bf7a61adc74d3b42429b8..493f416a7964c8ea63c4889512d8e4ba5854def5 100644 (file)
     - (ansible_os_family == "RedHat" and ansible_distribution_major_version|int >= 8)
     - copr_repos|length > 0
 
+- name: Enable PowerTools on CentOS
+  command: "dnf -y config-manager --set-enabled powertools"
+  when:
+    - ansible_distribution == 'CentOS'
+
 - import_tasks: gpg_keys.yml
   when: ansible_distribution == "Fedora"
   tags: