switch-to-containers: do not fail when stopping the ceph-mgr daemon

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>
pull/2300/head
Andrew Schoen 2018-01-05 12:37:36 -06:00 committed by Sébastien Han
parent 997edea271
commit 0b4b60e3c9
1 changed files with 4 additions and 0 deletions

View File

@ -148,11 +148,15 @@
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