From a9609e1da6b2d4d53e3d08aba785f3e2bca3b5c6 Mon Sep 17 00:00:00 2001 From: Maxim Burgerhout Date: Wed, 30 Sep 2020 08:52:43 +0200 Subject: [PATCH] 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 --- tasks/setup-RedHat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index f60ea15..08e1324 100644 --- a/tasks/setup-RedHat.yml +++ b/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