From eb000071cf271d34c72c13e352ab88e40324da88 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 19 Nov 2012 20:07:00 +0000 Subject: [PATCH] try to make the volume addition part of the standard persistent setup may not work --- tasks/persistent_cloud.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/persistent_cloud.yml b/tasks/persistent_cloud.yml index 1ee6740efd..5b6b90ae85 100644 --- a/tasks/persistent_cloud.yml +++ b/tasks/persistent_cloud.yml @@ -17,3 +17,9 @@ local_action: wait_for host=${public_ip} port=22 delay=20 timeout=300 only_if: "'${host_is_up.rc}' != '0'" +# 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}')" + with_items: $volumes +