Try this to mask the failure
This commit is contained in:
parent
e2f2a0fd52
commit
b215b57121
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
- 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}}"
|
with_items: "{{volumes}}"
|
||||||
register: volume_available
|
register: volume_available
|
||||||
|
failed_when: volume_available.rc == 2
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
when: volumes is defined
|
when: volumes is defined
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue