fix local fact

This commit is contained in:
Robert Kaussow 2018-07-10 23:33:46 +02:00
parent dc03eaad38
commit 4867bf1957
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
{
"comment" : "{{ ansible_managed }}"
"comment" : "{{ ansible_managed }}",
"version" : "{{ unifi_version }}"
}