]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch-to-containers: do not fail when stopping the ceph-mgr daemon
authorAndrew Schoen <aschoen@redhat.com>
Fri, 5 Jan 2018 18:37:36 +0000 (12:37 -0600)
committerSébastien Han <seb@redhat.com>
Tue, 9 Jan 2018 16:50:52 +0000 (17:50 +0100)
If we are working with a jewel cluster ceph mgr does not exist
and this makes the playbook fail.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 0b4b60e3c9cabbbda2883feb40a6f80763c66b50)
Signed-off-by: Sébastien Han <seb@redhat.com>
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index a11034e463f3e436433eadc12694bf287861df13..49d8e7fe91fb5858aa6d9625c64ed7ab0c02f04e 100644 (file)
   become: true
 
   pre_tasks:
+    # failed_when: false is here because if we're
+    # working with a jewel cluster then ceph mgr
+    # will not exist
     - name: stop non-containerized ceph mgr(s)
       service:
         name: "ceph-mgr@{{ ansible_hostname }}"
         state: stopped
         enabled: no
+      failed_when: false
 
     - set_fact:
         ceph_uid: 64045