From 770d1f9daf0b51ded2212d3eccee741d796bd00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Tue, 31 Mar 2015 09:19:25 +0000 Subject: [PATCH] on lockbox we do not have keystone file --- 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 3e6192ad32..87ffbed7f5 100644 --- a/tasks/persistent_cloud_new.yml +++ b/tasks/persistent_cloud_new.yml @@ -68,7 +68,7 @@ # instance can be both id and name, volume must be id # 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}}" +- shell: nova --os-auth-url="{{os_auth_url}}" --os-username="admin" --os-password="{{ADMIN_PASS}}" --os-tenant-name={{inventory_tenant}} volume-list | grep ' {{item.volume_id}} ' | grep 'available' && nova --os-auth-url="{{os_auth_url}}" --os-username="admin" --os-password="{{ADMIN_PASS}}" --os-tenant-name={{inventory_tenant}} volume-attach "{{inventory_instance_name}}" "{{item.volume_id}}" "{{item.device}}" with_items: volumes when: volumes is defined