mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-03 13:24:55 +00:00
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:
@@ -62,3 +62,11 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ ansible_env.HOME }}/in.txt"
|
path: "{{ ansible_env.HOME }}/in.txt"
|
||||||
state: absent
|
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.
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
# Tasks executed to ensure a sane environment to test IPA Vault module.
|
---
|
||||||
|
# Tasks executed to ensure a sane environment to test IPA Vault module.
|
||||||
|
- name: Ensure environment is clean.
|
||||||
|
import_tasks: env_cleanup.yml
|
||||||
|
|
||||||
- name: Create private key file.
|
- name: Create private key file.
|
||||||
shell:
|
shell:
|
||||||
@@ -12,9 +15,6 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
become: no
|
become: no
|
||||||
|
|
||||||
- name: Ensure environment is clean.
|
|
||||||
import_tasks: env_cleanup.yml
|
|
||||||
|
|
||||||
- name: Copy password file to target host.
|
- name: Copy password file to target host.
|
||||||
copy:
|
copy:
|
||||||
src: "{{ playbook_dir }}/password.txt"
|
src: "{{ playbook_dir }}/password.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user