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>
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