renew_vault_certificates/handlers/main.yml

20 lines
508 B
YAML
Raw Normal View History

2023-04-16 20:26:14 +00:00
---
# handlers file for renew_vault_certificates
- name: "Reload service file"
ansible.builtin.systemd:
daemon_reload: true
listen: "systemctl-daemon-reload"
- name: "Enable vault-certs service"
ansible.builtin.service:
name: vault-certs
enabled: true
listen: "systemctl-enable-vault-certs"
- name: "Start vault-certs service"
ansible.builtin.service:
name: vault-certs
state: restarted
listen: "systemctl-restart-vault-certs"
when: renew_vault_certificates_start_service