diff --git a/tasks/persistent_cloud.yml b/tasks/persistent_cloud.yml index 2a8080bece..9b9e73c5a1 100644 --- a/tasks/persistent_cloud.yml +++ b/tasks/persistent_cloud.yml @@ -23,3 +23,9 @@ only_if: "'${host_is_up.rc}' != '0' and len('$item') != 0" with_items: $volumes +# 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 len('$item') != 0" + with_items: $volumes +