Skip to content

Commit 5d6723d

Browse files
authored
Fix comparison distribution versions during package installation (#158)
1 parent 7f8182f commit 5d6723d

File tree

1 file changed

+2
-2
lines changed
  • resources/roles/install_uninstall/tasks

1 file changed

+2
-2
lines changed

resources/roles/install_uninstall/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
allow_downgrade: true
2222
allowerasing: true
2323
lock_timeout: 300
24-
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version >= '8'
24+
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version | int >= 8
2525
tags:
2626
- install_package
2727

@@ -31,7 +31,7 @@
3131
state: present
3232
allow_downgrade: true
3333
lock_timeout: 300
34-
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version < '8'
34+
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version | int < 8
3535
tags:
3636
- install_package
3737

0 commit comments

Comments
 (0)