diff --git a/tasks/openstack_hosts_configure_dnf.yml b/tasks/openstack_hosts_configure_dnf.yml index e59b061e..e1f5cf75 100644 --- a/tasks/openstack_hosts_configure_dnf.yml +++ b/tasks/openstack_hosts_configure_dnf.yml @@ -101,3 +101,11 @@ when: - ansible_os_family | lower == 'redhat' - ansible_distribution_major_version is version('8', '=') + +- name: Enable PowerTools repository + command: yum-config-manager --enable PowerTools + changed_when: false + when: + - ansible_os_family | lower == 'redhat' + - ansible_distribution_major_version is version('8', '=') + - install_method == 'distro' diff --git a/tests/group_vars/all.yml b/tests/group_vars/all.yml index 141c2d76..0f499d70 100644 --- a/tests/group_vars/all.yml +++ b/tests/group_vars/all.yml @@ -15,3 +15,5 @@ global_environment_variables: PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + +install_method: source