From 9209b052089b6aa597f49c4dfb447ed9c6ea3e4c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 9 Jul 2018 00:05:56 +0200 Subject: [PATCH] try to fix fact default --- tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install.yml b/tasks/install.yml index 3e595a8..a4e8c07 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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 }}'