try to fix version control

This commit is contained in:
Robert Kaussow 2018-07-12 01:18:25 +02:00
parent 8d58ff10c5
commit c8209c7623

View File

@ -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_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: - 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_compare(unifi_version, ">") - unifi_current_version is version(unifi_version, ">", strict=True)
- unifi_restore_after_upgrade - unifi_restore_after_upgrade
- name: Create symlink for latest version - name: Create symlink for latest version