summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2013-02-13 20:50:15 +0000
committerSeth Vidal <skvidal@fedoraproject.org>2013-02-13 20:50:15 +0000
commitaa0ba57daa51c97bbfb820e4873807784c76d290 (patch)
tree756e1ea0e6951395ab2567e861eff6810dd46e19
parentba26f5525152b29c1384d373316e59ade6869f4e (diff)
downloadansible-aa0ba57daa51c97bbfb820e4873807784c76d290.tar.gz
ansible-aa0ba57daa51c97bbfb820e4873807784c76d290.tar.xz
ansible-aa0ba57daa51c97bbfb820e4873807784c76d290.zip
duplicate the volume attachment as a test for euca issue
-rw-r--r--tasks/persistent_cloud.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tasks/persistent_cloud.yml b/tasks/persistent_cloud.yml
index 2a8080bec..9b9e73c5a 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
+