summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav Suchý <msuchy@redhat.com>2015-03-31 09:33:41 +0000
committerMiroslav Suchý <msuchy@redhat.com>2015-03-31 09:33:41 +0000
commit731191d607fbc65e0902f5c0a3789030eccc1934 (patch)
tree749b141ddb3531bc8347ecafb2b5e63ad916b51a
parent0ac74dd66bce54ab42db047b5258c833948eb541 (diff)
downloadansible-731191d607fbc65e0902f5c0a3789030eccc1934.tar.gz
ansible-731191d607fbc65e0902f5c0a3789030eccc1934.tar.xz
ansible-731191d607fbc65e0902f5c0a3789030eccc1934.zip
try this
-rw-r--r--tasks/persistent_cloud_new.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/persistent_cloud_new.yml b/tasks/persistent_cloud_new.yml
index ff09e3bdb..fc2f58ae9 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: nova --os-cacert="{{ private }}/files/openstack/fed-cloud09.pem" --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 --insecure --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}}"
+- shell: nova --os-cacert="{{ files }}/fedora-cloud/fed-cloud09.pem" --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 --insecure --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