]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Added `when: restapi`
authorAlistair A. Israel <aisrael@gmail.com>
Tue, 14 Apr 2015 06:30:32 +0000 (14:30 +0800)
committerAlistair A. Israel <aisrael@gmail.com>
Tue, 14 Apr 2015 06:30:32 +0000 (14:30 +0800)
roles/ceph-restapi/tasks/main.yml

index 5bf69816fb6c58342d1751d44f2cc0dca8bdef43..01820fa7f3a314141220f900e3a58a6a70ba4315 100644 (file)
@@ -1,12 +1,14 @@
 ---
 - include: pre_requisite.yml
+  when: restapi
 
 - name: Check if Ceph REST API is already started
   shell: "ps aux|grep [c]eph-rest-api"
   register: restapi_status
+  when: restapi
   ignore_errors: True
 
 - name: Start Ceph REST API
   shell: "nohup ceph-rest-api &"
-  when: restapi_status.rc != 0
+  when: restapi and restapi_status.rc != 0
   changed_when: False