diff --git a/playbooks/roles/bifrost-configdrives-dynamic/templates/openstack_meta_data.json.j2 b/playbooks/roles/bifrost-configdrives-dynamic/templates/openstack_meta_data.json.j2 index e3cc207f7..b84a15e85 100644 --- a/playbooks/roles/bifrost-configdrives-dynamic/templates/openstack_meta_data.json.j2 +++ b/playbooks/roles/bifrost-configdrives-dynamic/templates/openstack_meta_data.json.j2 @@ -10,11 +10,11 @@ {% else %} "files": [], {% endif %} - "hostname": "{{ name }}", - "name": "{{ name }}", + "hostname": {{ name|to_json }}, + "name": {{ name|to_json }}, "meta": {}, "public_keys": { - "mykey": "{{ ssh_public_key }}" + "mykey": {{ ssh_public_key|to_json }} }, "uuid": "{{ uuid }}" }