Skip to content

Commit 63eb433

Browse files
authored
Remove temporary dir after apt key import (#442)
Remove the temporary directory created by `_apt_key_import.yml` after importing the key, so they don't pile up in the hosts` `/tmp` dirs.
1 parent ec5eccc commit 63eb433

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tasks/_apt-key-import.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,10 @@
8181
when: key_needs_import
8282
register: key_import_result
8383
changed_when: '"imported: 1" in key_import_result.stderr'
84+
85+
- name: "Remove temporary directory for key manipulation"
86+
file:
87+
path: "{{ tempdir.path }}"
88+
state: absent
89+
when: key_needs_import
90+
changed_when: false

0 commit comments

Comments
 (0)