From b2c827a24fcc6cd3e77dea7c125c7ecf464815bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 2 Oct 2021 13:07:29 +0200 Subject: [PATCH] Cleanup tempdir AFTER it is no longer used --- user.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/user.yml b/user.yml index d51c797..13b8aa6 100644 --- a/user.yml +++ b/user.yml @@ -386,11 +386,6 @@ dest: "{{ tempdir.path }}/PortfolioPerformance" remote_src: true - - name: clean up temp directory - file: - path: "{{ tempdir.path }}" - state: absent - - name: install portfolio performance synchronize: src: "{{ tempdir.path }}/PortfolioPerformance" @@ -399,6 +394,11 @@ checksum: true delete: true + - name: clean up temp directory + file: + path: "{{ tempdir.path }}" + state: absent + when: - not stat_portfolio_performance_installation.stat.exists - not ansible_check_mode