try to fix version compare
This commit is contained in:
parent
c8209c7623
commit
6f6adcba77
@ -31,7 +31,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
become: True
|
become: True
|
||||||
become_user: "{{ unifi_user }}"
|
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:
|
- block:
|
||||||
- name: Remove data folder from new version
|
- name: Remove data folder from new version
|
||||||
@ -47,7 +47,7 @@
|
|||||||
become: True
|
become: True
|
||||||
become_user: "{{ unifi_user }}"
|
become_user: "{{ unifi_user }}"
|
||||||
when:
|
when:
|
||||||
- unifi_current_version is version(unifi_version, ">", strict=True)
|
- unifi_version is version(unifi_current_version, ">")
|
||||||
- unifi_restore_after_upgrade
|
- unifi_restore_after_upgrade
|
||||||
|
|
||||||
- name: Create symlink for latest version
|
- name: Create symlink for latest version
|
||||||
|
Loading…
Reference in New Issue
Block a user