From 00ec9ed7f488add8c07c198962e9f6d04dfad4c4 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 4 Nov 2023 18:09:49 +0100 Subject: [PATCH] Remove secrets file after download. --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 22fbb34..58d4d97 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -12,3 +12,8 @@ - name: Extract from secrets.tar.gz.enc shell: "openssl enc -aes-256-cbc -md md5 -pass env:SECRETS_ARCHIVE_PASSPHRASE -d -in {{ WORKDIR }}/secrets.tar.gz.enc | tar -zxv -C {{ WORKDIR }}" + +- name: Remove secrets.tar.gz.enc + ansible.builtin.file: + path: "{{ WORKDIR }}/secrets.tar.gz.enc" + state: absent