From: David Galloway Date: Wed, 15 Nov 2017 15:53:04 +0000 (-0500) Subject: vmhost: Allow task to fail but ignore errors X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9d049dfdc82355b50dadca53e02b03e548eeb26d;p=ceph-cm-ansible.git vmhost: Allow task to fail but ignore errors With a recent update to ansible, the changed task would never return a 'failed' result with `failed_when` set. `ignore_errors` is what we want so the task fails but the playbook proceeds. Signed-off-by: David Galloway --- diff --git a/roles/vmhost/tasks/libvirt.yml b/roles/vmhost/tasks/libvirt.yml index 98e450e..04b28de 100644 --- a/roles/vmhost/tasks/libvirt.yml +++ b/roles/vmhost/tasks/libvirt.yml @@ -87,7 +87,7 @@ - name: Query for front network definition command: virsh net-info front - failed_when: false + ignore_errors: true register: front_net - name: Send front network definition file