From: Dan Mick Date: Fri, 2 Jun 2023 09:12:59 +0000 (-0700) Subject: testnode: Make sure PowerTools repo is enabled on CentOS X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F742%2Fhead;p=ceph-cm-ansible.git testnode: Make sure PowerTools repo is enabled on CentOS 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 --- diff --git a/roles/testnode/tasks/yum/repos.yml b/roles/testnode/tasks/yum/repos.yml index 278d8d7f..493f416a 100644 --- a/roles/testnode/tasks/yum/repos.yml +++ b/roles/testnode/tasks/yum/repos.yml @@ -38,6 +38,11 @@ - (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: