From 997edea271b713b29f896ebb87dc6df29a60488b Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 5 Jan 2018 10:06:53 -0600 Subject: [PATCH] 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 --- infrastructure-playbooks/rolling_update.yml | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5