From ac5dc0e38a501d75a954ddc9e6e0a4bffc498977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Tue, 31 Mar 2015 09:05:47 +0000 Subject: [PATCH] always try to attach volumes --- tasks/persistent_cloud_new.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/persistent_cloud_new.yml b/tasks/persistent_cloud_new.yml index 48ef8ed08a..3e6192ad32 100644 --- a/tasks/persistent_cloud_new.yml +++ b/tasks/persistent_cloud_new.yml @@ -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