From 2f0d6be4e9ca9f69b79e1e8a6e0c6d61173fe401 Mon Sep 17 00:00:00 2001 From: Solal Nathan Date: Wed, 10 Feb 2021 11:04:06 +0100 Subject: [PATCH] fix if file is not already present --- utils/version_check.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/version_check.yml b/utils/version_check.yml index e608e43..b543053 100755 --- a/utils/version_check.yml +++ b/utils/version_check.yml @@ -3,10 +3,11 @@ # Check for the distribution - hosts: localhost tasks: - - name: Delete local tmp file - file: - path: /tmp/ansible_dump_dist_version.txt - state: absent + - name: Make sure local file exist but is empty # weird hack, I know + copy: + dest: /tmp/ansible_dump_reboot_needed.txt + content: "" + force: true - hosts: all,!unifi tasks: