mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2022-08-29 11:00
This commit is contained in:
16
roles/linstor_controller/tasks/services.yml
Normal file
16
roles/linstor_controller/tasks/services.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
- when: not linctl_ha
|
||||
name: Start and enable the service
|
||||
service: name=linstor-controller state=started enabled=True
|
||||
register: linctl_started
|
||||
tags: drbd
|
||||
|
||||
- when: linctl_ha
|
||||
block:
|
||||
- name: Ensure the service is disabled and managed by drbd-reactor
|
||||
service: name=linstor-controller enabled=False
|
||||
|
||||
- name: Ensure the data mount unit is disabled
|
||||
systemd: name=var-lib-linstor.mount enabled=False
|
||||
tags: drbd
|
Reference in New Issue
Block a user