try this for handling no volumes
This commit is contained in:
parent
3bedcf0cc5
commit
1a82ae99ee
1 changed files with 1 additions and 1 deletions
|
@ -20,6 +20,6 @@
|
|||
# attach and mount volumes
|
||||
- name: attach volumes to the system
|
||||
local_action: shell euca-attach-volume -i ${inst_res.instances[0].id} $item
|
||||
only_if: "'${host_is_up.rc}' != '0' and is_set('''${volumes}''')"
|
||||
only_if: "'${host_is_up.rc}' != '0' and len("$volumes") != 0"
|
||||
with_items: $volumes
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue