]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: do not fail the playbook if nfs-ganesha is not present
authorAndrew Schoen <aschoen@redhat.com>
Fri, 5 Jan 2018 16:06:53 +0000 (10:06 -0600)
committerSébastien Han <seb@redhat.com>
Sat, 6 Jan 2018 13:07:55 +0000 (14:07 +0100)
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>
infrastructure-playbooks/rolling_update.yml

index eb2f00035e625e9df02ecd3a5cf0fb0f9f4848d0..23dfa683e44f686a29d88d5e7e4aebae9576222a 100644 (file)
   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