mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
Installroot OS version check fix (#20180)
Cast to int before checking the OS version. This prevents the DNF tests from running on Fedora < 23
This commit is contained in:
parent
4b3977d5af
commit
b1c57ea443
2 changed files with 3 additions and 3 deletions
|
@ -28,5 +28,5 @@
|
|||
# It will always run with $releasever unset
|
||||
- include: 'yuminstallroot.yml'
|
||||
when: (ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux'] or
|
||||
(ansible_distribution in ['Fedora'] and ansible_distribution_major_version < 23)) and
|
||||
(ansible_distribution in ['Fedora'] and ansible_distribution_major_version|int < 23)) and
|
||||
ansible_python.version.major == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue