mirror of https://github.com/ceph/ceph-ansible.git
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
parent
997edea271
commit
0b4b60e3c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue