diff --git a/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml b/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml index dc78b178a..d311bb508 100644 --- a/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml +++ b/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml @@ -61,16 +61,13 @@ - target.stat.exists - not target.stat.islnk -- name: enable the rbd-target-gw service and make sure it is running +- name: start tcmu-runner, rbd-target-api and rbd-target-gw service: - name: rbd-target-gw + name: "{{ item }}" + state: started enabled: yes masked: no - state: started - -- name: enable the rbd-target-api service and make sure it is running - service: - name: rbd-target-api - enabled: yes - masked: no - state: started + with_items: + - tcmu-runner + - rbd-target-gw + - rbd-target-api