From 211f06d239adc03fd5de8933d28783e3e7eca26e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 9 Jul 2018 00:00:47 +0200 Subject: [PATCH] try to fix default for custom fact --- tasks/install.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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