remove the key file from localhost

master
histausse 3 years ago
parent 3cf23de26e
commit 9162a800a8
Signed by: histausse
GPG Key ID: 67486F107F62E9E9

@ -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…
Cancel
Save