ipaserver/tasks/install.yml: Always remove temporary pkcs12 copies

The created temporary pkcs12 copies need to be removed in all cases. A
new task has been added.
This commit is contained in:
Thomas Woerner
2020-06-03 12:48:07 +02:00
parent 578d08c796
commit 8e6d433df8

View File

@@ -449,6 +449,16 @@
when: not result_ipaserver_setup_ca.csr_generated | bool
always:
- name: Cleanup temporary files
file:
path: "{{ item }}"
state: absent
with_items:
- "/etc/ipa/.tmp_pkcs12_dirsrv"
- "/etc/ipa/.tmp_pkcs12_http"
- "/etc/ipa/.tmp_pkcs12_pkinit"
when: not ansible_check_mode and not
(not result_ipaserver_test.changed and
(result_ipaserver_test.client_already_configured is defined or