FIX: fail to create key for libvirt 45/3045/1
authorgraiss <grakiss.wanglei@huawei.com>
Thu, 5 Nov 2015 06:57:43 +0000 (14:57 +0800)
committergraiss <grakiss.wanglei@huawei.com>
Thu, 5 Nov 2015 06:57:43 +0000 (14:57 +0800)
JIRA: COMPASS-137
  - create secret key for libvirt with specific uuid

Change-Id: I9a71df0febd4a706023c99d9817c7e9e7bfe4b44
Signed-off-by: graiss <grakiss.wanglei@huawei.com>
deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_openstack_pre.yml

index d0ee7e2..b7ffc85 100644 (file)
@@ -58,7 +58,7 @@
 
 
 - name: create key for libvirt on compute nodes
-  shell: ssh -o StrictHostKeyChecking=no -t {{ item }} "virsh secret-define --file secret.xml && virsh secret-set-value --secret {{ ceph_uuid.stdout_lines[0] }} --base64 $(cat client.cinder.key)"
+  shell: ssh -o StrictHostKeyChecking=no -t {{ item }} "virsh secret-define --file secret.xml && virsh secret-set-value --secret {{ ceph_uuid.stdout_lines[0] }} --base64 \$(cat client.cinder.key)"
   with_items:
     - "{{ groups['compute'] }}"
   tags: