mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 23:23:22 +02:00
9 lines
475 B
YAML
9 lines
475 B
YAML
![]() |
---
|
||
|
|
||
|
- 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'
|