Only enable PowerTools on CentOS

The PowerTools repo exists only on CentOS, but the current selector ansible_os_family == 'RedHat' also evaluates to true on Fedora and RHEL, making this role fail.

This patch switches the when statement to only evaluate to true if really running on CentOS, which I think was the intention
This commit is contained in:
Maxim Burgerhout 2020-09-30 08:52:43 +02:00 committed by GitHub
parent 5ac9b8da7c
commit a9609e1da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,5 +16,5 @@
changed_when: false
when:
- ansible_os_family == 'RedHat'
- ansible_distribution == 'CentOS'
- ansible_distribution_major_version | int >= 8