fedora-upgrade: fix version comparisons, prevent downgrade attempts

This commit is contained in:
Josh Lay 2020-04-17 21:02:24 -05:00
parent c64e78b724
commit 8e3b38c937

View file

@ -1,4 +1,4 @@
---
- include_tasks: tasks.yml
when: (ansible_distribution in ["Fedora"] and not is_atomic) and (ansible_distribution_version != fedora_target and ansible_distribution_version|int >= fedora_minimum)
when: (ansible_distribution in ["Fedora"] and not is_atomic) and (ansible_distribution_version < fedora_target and ansible_distribution_version|int >= fedora_minimum)