mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 03:14:42 +00:00
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:
@@ -449,6 +449,16 @@
|
|||||||
|
|
||||||
when: not result_ipaserver_setup_ca.csr_generated | bool
|
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
|
when: not ansible_check_mode and not
|
||||||
(not result_ipaserver_test.changed and
|
(not result_ipaserver_test.changed and
|
||||||
(result_ipaserver_test.client_already_configured is defined or
|
(result_ipaserver_test.client_already_configured is defined or
|
||||||
|
|||||||
Reference in New Issue
Block a user