rolling_update: do not fail the playbook if nfs-ganesha is not present

The rolling update playbook was attempting to stop the
nfs-ganesha service on nodes where jewel is still installed.
The nfs-ganesha service did not exist in jewel so the task fails.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/2300/head
Andrew Schoen 2018-01-05 10:06:53 -06:00 committed by Sébastien Han
parent 9c5e8ce79a
commit 997edea271
1 changed files with 4 additions and 0 deletions

View File

@ -535,11 +535,15 @@
become: True
pre_tasks:
# failed_when: false is here so that if we upgrade
# from a version of ceph that does not have nfs-ganesha
# then this task will not fail
- name: stop ceph nfs
systemd:
name: nfs-ganesha
state: stopped
enabled: yes
failed_when: false
when:
- not containerized_deployment