]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-iscsi: start tcmu-runner for non-container
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 23 Apr 2019 14:08:30 +0000 (10:08 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 24 Apr 2019 08:03:25 +0000 (10:03 +0200)
Only rbd-target-api and rbd-target-gw were started/enabled for non
containerized deployment.
The issue doesn't happen with containerized setup.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml

index dc78b178a9fa68e30b4e0048fd2a468af42b278d..d311bb508308e54bb373181b914bf05028bb02e5 100644 (file)
     - 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
-    enabled: yes
-    masked: no
+    name: "{{ item }}"
     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