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
pull/127/head
Maxim Burgerhout 4 years ago committed by GitHub
parent 5ac9b8da7c
commit a9609e1da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tasks/setup-RedHat.yml

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

Loading…
Cancel
Save