fix condition
This commit is contained in:
parent
9209b05208
commit
22b37fb48f
@ -58,7 +58,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, ">")
|
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
|
- name: Create symlink for latest version
|
||||||
file:
|
file:
|
||||||
@ -89,5 +89,5 @@
|
|||||||
template:
|
template:
|
||||||
src: etc/ansible/fact.d/unifi.json.j2
|
src: etc/ansible/fact.d/unifi.json.j2
|
||||||
dest: /etc/ansible/fact.d/unifi.json
|
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
|
become: True
|
||||||
|
Loading…
Reference in New Issue
Block a user