feat(pb): removes TLS certificates after the distribution
This commit is contained in:
@@ -31,3 +31,19 @@
|
|||||||
roles:
|
roles:
|
||||||
# Pull certificates from cert_proxy and distribute them among the servers
|
# Pull certificates from cert_proxy and distribute them among the servers
|
||||||
- ../roles/update_certificates
|
- ../roles/update_certificates
|
||||||
|
|
||||||
|
post_tasks:
|
||||||
|
- name: Delete certificates from cert-proxy
|
||||||
|
ansible.builtin.file:
|
||||||
|
name: /tmp/letsencrypt
|
||||||
|
state: absent
|
||||||
|
when: "inventory_hostname == 'cert-proxy'"
|
||||||
|
run_once: true
|
||||||
|
|
||||||
|
- name: Delete certificates from ansible-server
|
||||||
|
ansible.builtin.file:
|
||||||
|
name: /tmp/letsencrypt
|
||||||
|
state: absent
|
||||||
|
run_once: true
|
||||||
|
delegate_to: 127.0.0.1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user