always try to attach volumes
This commit is contained in:
parent
9208dfef4a
commit
ac5dc0e38a
1 changed files with 1 additions and 1 deletions
|
@ -70,5 +70,5 @@
|
|||
# volume must be id
|
||||
- shell: source keystonerc_admin && nova --os-tenant-name={{inventory_tenant}} volume-list | grep ' {{item.volume_id}} ' | grep 'available' && nova --os-tenant-name={{inventory_tenant}} volume-attach "{{inventory_instance_name}}" "{{item.volume_id}}" "{{item.device}}"
|
||||
with_items: volumes
|
||||
when: volumes is defined and vm_status.stdout == "ACTIVE"
|
||||
when: volumes is defined
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue