Enable PowerTools repository for distro installs

RDO repo relies on some libraties that are present in PowerTools
repository. This repo exists in base image, however is disabled.
From the other side, zuul adds this repo with base jobs and enable it
in CI by default.
So not to deal with getting right URL and etc, we're just running command

Change-Id: I028dce38a4b7dbdd3683b4ad07bd2f5cd19ed1b5
This commit is contained in:
Dmitriy Rabotyagov 2020-06-22 17:59:53 +03:00 committed by Dmitriy Rabotyagov (noonedeadpunk)
parent 002362ba6b
commit 5f6362fa5c
2 changed files with 10 additions and 0 deletions

View File

@ -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'

View File

@ -15,3 +15,5 @@
global_environment_variables:
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
install_method: source