From bc18afa7afffee5964b016a43d3544a090ccc9a2 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 11 Jul 2018 23:14:07 +0200 Subject: [PATCH] fix block --- tasks/install.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index 15b056a..e0466d9 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -34,8 +34,10 @@ when: unifi_current_version is version_compare(unifi_version, ">") or unifi_current_version is version_compare('0.0.0', "=") - block: - - + - name: Remove data folder from new version + file: + path: "{{ unifi_base_dir }}/{{ unifi_current_version }}//UniFi/data" + state: absent become: True become_user: "{{ unifi_user }}" when: