Apparently ansible_distribution_major_version returns a string and
cannot therefore properly be tested in an integer based test. Use the
version() function instead.
https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#version-comparison
Change-Id: I7abb42f94b1543aed5fe3ca548184ac1082612d7
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
cmd: dnf config-manager --set-enabled PowerTools
warn: no
become: true
- when: ansible_distribution_major_version >= 8
+ when: ansible_facts['distribution_version'] is version('8', '>=')
- name: Install base packages
yum: