remove the key file from localhost

This commit is contained in:
histausse 2021-09-08 21:13:51 +02:00
parent 3cf23de26e
commit 9162a800a8
Signed by: histausse
GPG key ID: 67486F107F62E9E9

View file

@ -30,3 +30,13 @@
group: "{{ group | default('root') }}"
mode: "{{ key_mode | default('u=rw,g=,o=') }}"
when: not key_file.stat.exists
# Clean up
- name: Remove the local cert key
become: false
file:
path: "/tmp/ansible_hacky_pki_{{ cname }}.key"
state: absent
delegate_to: localhost
when: not key_file.stat.exists