From 9d049dfdc82355b50dadca53e02b03e548eeb26d Mon Sep 17 00:00:00 2001 From: David Galloway Date: Wed, 15 Nov 2017 10:53:04 -0500 Subject: [PATCH] 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 --- roles/vmhost/tasks/libvirt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5