renew_vault_certificates/handlers/main.yml
Bertrand Lanson 9660328ec7
Some checks failed
test / Linting (push) Failing after 29s
test / Molecule tests (default, debian11) (push) Has been skipped
test / Molecule tests (default, debian12) (push) Has been skipped
test / Molecule tests (default, ubuntu2004) (push) Has been skipped
test / Molecule tests (default, ubuntu2204) (push) Has been skipped
test / Molecule tests (with_custom_config, debian11) (push) Has been skipped
test / Molecule tests (with_custom_config, debian12) (push) Has been skipped
test / Molecule tests (with_custom_config, ubuntu2004) (push) Has been skipped
test / Molecule tests (with_custom_config, ubuntu2204) (push) Has been skipped
feat: remove become from role
2023-12-03 18:23:33 +01:00

20 lines
508 B
YAML

---
# 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