]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
vmhost: Allow task to fail but ignore errors 350/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 15 Nov 2017 15:53:04 +0000 (10:53 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 15 Nov 2017 15:53:04 +0000 (10:53 -0500)
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 <dgallowa@redhat.com>
roles/vmhost/tasks/libvirt.yml

index 98e450eb8eb8ad87958394d950e6f60f6452d4cd..04b28de41c00a828b4085b76be43d386ab94cc14 100644 (file)
@@ -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