Try this to mask the failure

This commit is contained in:
Kevin Fenzi 2016-06-25 20:11:01 +00:00
parent e2f2a0fd52
commit b215b57121

View file

@ -51,6 +51,7 @@
- local_action: shell nova --os-auth-url="{{os_auth_url}}" --os-username="admin" --os-password="{{ADMIN_PASS}}" --os-tenant-name={{inventory_tenant}} volume-list | grep ' {{item.volume_id}} ' | grep 'available'
with_items: "{{volumes}}"
register: volume_available
failed_when: volume_available.rc == 2
ignore_errors: True
when: volumes is defined