From: Andrew Schoen Date: Fri, 5 Jan 2018 16:06:53 +0000 (-0600) Subject: rolling_update: do not fail the playbook if nfs-ganesha is not present X-Git-Tag: v3.0.17~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4e29677b611796b446cb171849b28bc2bc07a842;p=ceph-ansible.git 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 (cherry picked from commit 997edea271b713b29f896ebb87dc6df29a60488b) Signed-off-by: Sébastien Han --- diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index eb2f00035..23dfa683e 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -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