fix local fact
This commit is contained in:
parent
dc03eaad38
commit
4867bf1957
@ -60,7 +60,7 @@
|
||||
|
||||
- name: Set current version to custom fact
|
||||
template:
|
||||
src: etc/ansible/facts.d/unifi.json.j2
|
||||
dest: /etc/ansible/facts.d/unifi.json
|
||||
src: etc/ansible/facts.d/unifi.fact.j2
|
||||
dest: /etc/ansible/facts.d/unifi.fact
|
||||
when: unifi_current_version is version_compare(unifi_version, ">") or unifi_current_version is version_compare('0.0.0', "=")
|
||||
become: True
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"comment" : "{{ ansible_managed }}"
|
||||
"comment" : "{{ ansible_managed }}",
|
||||
"version" : "{{ unifi_version }}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user