fix condition
This commit is contained in:
parent
9209b05208
commit
22b37fb48f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user