try to fix default for custom fact
This commit is contained in:
parent
8f1a28dd2f
commit
211f06d239
@ -1,7 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: Set current unifi version
|
- name: Set current unifi version
|
||||||
set_fact:
|
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:
|
- block:
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
|
Loading…
Reference in New Issue
Block a user