Issues 19 and 33 #34
@@ -31,3 +31,19 @@
|
||||
roles:
|
||||
# Pull certificates from cert_proxy and distribute them among the servers
|
||||
- ../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