remove the key file from localhost
This commit is contained in:
parent
3cf23de26e
commit
9162a800a8
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue