try to fix default for custom fact

This commit is contained in:
Robert Kaussow 2018-07-09 00:00:47 +02:00
parent 8f1a28dd2f
commit 211f06d239
1 changed files with 4 additions and 1 deletions

View File

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