ansible-roles/roles/linstor_controller/tasks/services.yml

21 lines
567 B
YAML
Raw Normal View History

2022-08-29 11:00:17 +02:00
---
- when: not linctl_ha
name: Start and enable the service
service: name=linstor-controller state=started enabled=True
register: linctl_started
tags: drbd
2022-12-14 18:00:12 +01:00
- name: Handle log janitor timer
systemd: name=linstor-controller-logs-janitor.timer state=started enabled=True
tags: drbd
2022-08-29 11:00:17 +02:00
- 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