2023-04-27 22:04:26 +00:00
|
|
|
---
|
|
|
|
# handlers file for renew_consul_certificates
|
2023-04-29 19:46:58 +00:00
|
|
|
- name: "Reload service file"
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: true
|
2023-12-02 09:26:06 +00:00
|
|
|
scope: system
|
2023-12-02 09:09:56 +00:00
|
|
|
become: true
|
2023-04-29 19:46:58 +00:00
|
|
|
listen: "systemctl-daemon-reload"
|
|
|
|
|
|
|
|
- name: "Enable consul-certs service"
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: consul-certs
|
|
|
|
enabled: true
|
2023-12-02 09:09:56 +00:00
|
|
|
become: true
|
2023-04-29 19:46:58 +00:00
|
|
|
listen: "systemctl-enable-consul-certs"
|
|
|
|
|
|
|
|
- name: "Start consul-certs service"
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: consul-certs
|
|
|
|
state: restarted
|
2023-12-02 09:09:56 +00:00
|
|
|
become: true
|
2023-04-29 19:46:58 +00:00
|
|
|
listen: "systemctl-restart-consul-certs"
|
|
|
|
when: renew_consul_certificates_start_service
|