* 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 <agrimberg@linuxfoundation.org>
       - 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: