try to fix fact default

This commit is contained in:
Robert Kaussow 2018-07-09 00:05:56 +02:00
parent 211f06d239
commit 9209b05208

View File

@ -1,7 +1,7 @@
---
- name: Set current unifi version
set_fact:
unifi_current_version: "{{ ansible_local.unifi | default (dict(version='0.0.0'))['version'] }}"
unifi_current_version: "{{ (ansible_local.unifi | default (dict(version='0.0.0')))['version'] }}"
- debug:
msg: Current version is '{{ unifi_current_version }}'