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