diff --git a/tasks/install.yml b/tasks/install.yml index 8a90337..3e595a8 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -1,7 +1,10 @@ --- - name: Set current unifi version set_fact: - unifi_current_version: "{{ ansible_local.unifi.version | default ('0.0.0')}}" + unifi_current_version: "{{ ansible_local.unifi | default (dict(version='0.0.0'))['version'] }}" + +- debug: + msg: Current version is '{{ unifi_current_version }}' - block: - name: Install requirements