fix condition

This commit is contained in:
Robert Kaussow 2018-07-09 00:53:57 +02:00
parent 9209b05208
commit 22b37fb48f

View File

@ -58,7 +58,7 @@
state: absent
become: True
become_user: "{{ unifi_user }}"
when: unifi_current_version is version_compare(unifi_version, ">")
when: unifi_current_version is version_compare(unifi_version, ">") or unifi_current_version is version_compare('0.0.0', "=")
- name: Create symlink for latest version
file:
@ -89,5 +89,5 @@
template:
src: etc/ansible/fact.d/unifi.json.j2
dest: /etc/ansible/fact.d/unifi.json
when: unifi_current_version is version_compare(unifi_version, ">")
when: unifi_current_version is version_compare(unifi_version, ">") or unifi_current_version is version_compare('0.0.0', "=")
become: True