From dbd3a53616793745f078c16eb62405ef6919907c Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Wed, 20 May 2020 13:08:50 -0700 Subject: [PATCH] Fix PowerTools enablement and IUS install * Use correct syntax for verifying the major version(s) we should be setting IUS up on * Fix the fact we're checking to know if should be enabling the PowerTools repo Change-Id: I3340d5aae147a2c5881d973442fba4e9543d8c1e Signed-off-by: Andrew Grimberg --- provision/install-base-pkgs-RedHat.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provision/install-base-pkgs-RedHat.yaml b/provision/install-base-pkgs-RedHat.yaml index 59a9b5d..6a6252a 100644 --- a/provision/install-base-pkgs-RedHat.yaml +++ b/provision/install-base-pkgs-RedHat.yaml @@ -13,14 +13,14 @@ - yum-plugin-replace become: true when: - - ansible_distribution_major_version < 8 + - ansible_facts['distribution_major_version'] is version('8', '<') - name: Enable PowerTools command: cmd: dnf config-manager --set-enabled PowerTools warn: no become: true - when: ansible_facts['distribution_version'] is version('8', '>=') + when: ansible_facts['distribution_major_version'] is version('8', '>=') - name: Install base packages yum: -- 2.16.6