renew_consul_certificates/handlers/main.yml

20 lines
516 B
YAML
Raw Normal View History

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
listen: "systemctl-daemon-reload"
- name: "Enable consul-certs service"
ansible.builtin.service:
name: consul-certs
enabled: true
listen: "systemctl-enable-consul-certs"
- name: "Start consul-certs service"
ansible.builtin.service:
name: consul-certs
state: restarted
listen: "systemctl-restart-consul-certs"
when: renew_consul_certificates_start_service