try to fix version compare

This commit is contained in:
Robert Kaussow 2018-07-12 01:27:26 +02:00
parent c8209c7623
commit 6f6adcba77

View File

@ -31,7 +31,7 @@
state: absent
become: True
become_user: "{{ unifi_user }}"
when: unifi_current_version is version(unifi_version, ">", strict=True) or unifi_current_version is version('0.0.0', "=", strict=True)
when: unifi_version is version(unifi_current_version, ">") or unifi_current_version is version('0.0.0', "=")
- block:
- name: Remove data folder from new version
@ -47,7 +47,7 @@
become: True
become_user: "{{ unifi_user }}"
when:
- unifi_current_version is version(unifi_version, ">", strict=True)
- unifi_version is version(unifi_current_version, ">")
- unifi_restore_after_upgrade
- name: Create symlink for latest version