ansible-roles/roles/linstor_controller/handlers/main.yml

12 lines
594 B
YAML
Raw Normal View History

2022-08-29 11:00:17 +02:00
---
- name: restart linstor-controller
service: name=linstor-controller state=restarted
# Only restart if the service wasn't just started, and if either HA is not used, or the service was running (so it's the current active instance)
when:
- not linctl_started.changed
- not linctl_ha or linctl_services.ansible_facts.services['linstor-controller.service'] is defined and linctl_services.ansible_facts.services['linstor-controller.service'].state == 'started'
2022-12-14 18:00:12 +01:00
- name: restart linstor-controller-logs-janitor
systemd: name=linstor-controller-logs-janitor.timer state=restarted