From: Andrew Grimberg Date: Wed, 20 May 2020 20:08:50 +0000 (-0700) Subject: Fix PowerTools enablement and IUS install X-Git-Tag: v0.5.1^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=dbd3a53616793745f078c16eb62405ef6919907c;p=releng%2Fcommon-packer.git 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 --- 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: