2018-03-23 11:24:56 +08:00
|
|
|
---
|
2019-07-04 22:10:00 +08:00
|
|
|
- name: create rbd target log directories
|
|
|
|
file:
|
|
|
|
path: '/var/log/{{ item }}'
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- rbd-target-api
|
|
|
|
- rbd-target-gw
|
2020-09-15 15:48:31 +08:00
|
|
|
- tcmu-runner
|
2019-07-04 22:10:00 +08:00
|
|
|
|
2019-07-24 16:10:18 +08:00
|
|
|
- name: include_tasks systemd.yml
|
|
|
|
include_tasks: systemd.yml
|
2018-03-23 11:24:56 +08:00
|
|
|
|
|
|
|
- name: systemd start tcmu-runner, rbd-target-api and rbd-target-gw containers
|
|
|
|
systemd:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
2019-03-20 18:35:36 +08:00
|
|
|
masked: no
|
2018-03-23 11:24:56 +08:00
|
|
|
daemon_reload: yes
|
|
|
|
with_items:
|
|
|
|
- tcmu-runner
|
|
|
|
- rbd-target-gw
|
|
|
|
- rbd-target-api
|