renew_vault_certificates/handlers/main.yml
Bertrand Lanson ed2c223727
All checks were successful
test / Linting (push) Successful in 11s
test / Molecule tests (default, debian11) (push) Successful in 1m5s
test / Molecule tests (default, debian12) (push) Successful in 1m8s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m20s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m21s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 1m5s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m7s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 1m19s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 1m18s
feat: add become, add vagrant tests, fix #1
2023-12-02 16:06:10 +01:00

23 lines
553 B
YAML

---
# handlers file for renew_vault_certificates
- name: "Reload service file"
ansible.builtin.systemd:
daemon_reload: true
become: true
listen: "systemctl-daemon-reload"
- name: "Enable vault-certs service"
ansible.builtin.service:
name: vault-certs
enabled: true
become: true
listen: "systemctl-enable-vault-certs"
- name: "Start vault-certs service"
ansible.builtin.service:
name: vault-certs
state: restarted
become: true
listen: "systemctl-restart-vault-certs"
when: renew_vault_certificates_start_service