From d62e3f07dfa403988fe0f162e60ee5161621da1d Mon Sep 17 00:00:00 2001 From: to-bar <46519524+to-bar@users.noreply.github.com> Date: Mon, 7 Oct 2019 13:06:51 +0200 Subject: [PATCH] Clean up temporary files #536 --- .../playbooks/roles/repository/tasks/teardown.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/core/src/epicli/data/common/ansible/playbooks/roles/repository/tasks/teardown.yml b/core/src/epicli/data/common/ansible/playbooks/roles/repository/tasks/teardown.yml index 397176776a..287cca0b6c 100644 --- a/core/src/epicli/data/common/ansible/playbooks/roles/repository/tasks/teardown.yml +++ b/core/src/epicli/data/common/ansible/playbooks/roles/repository/tasks/teardown.yml @@ -1,2 +1,13 @@ - name: Re-enable system repositories and disable epirepo - include_tasks: "{{ ansible_os_family }}/teardown.yml" \ No newline at end of file + include_tasks: "{{ ansible_os_family }}/teardown.yml" + +- name: Clean up temporary files + file: + state: absent + path: "{{ path }}" + loop: + - /tmp/epi-download-requirements + - /tmp/epi-repository-setup-scripts + - /var/tmp/enabled-system-repos.txt + loop_control: + index_var: path \ No newline at end of file