Remove Vault public/private keys after testing.

Public and private key files were created but not removed when testing
the Vault module. This was fixed by adding a task to remove them to
Vault's env_cleanup playbook.
This commit is contained in:
Rafael Guterres Jeffman
2020-09-23 11:05:26 -03:00
parent 9c13882428
commit 161d0b3b9f
2 changed files with 12 additions and 4 deletions

View File

@@ -62,3 +62,11 @@
file:
path: "{{ ansible_env.HOME }}/in.txt"
state: absent
- name: Remove private/public key files.
shell:
cmd: rm -f private.pem public.pem
delegate_to: localhost
become: no
args:
warn: no # suppres warning for not using the `file` module.