diff --git a/templates/ansible/ubuntu/inventory.tpl b/templates/ansible/ubuntu/inventory.tpl
index b82f86332dafcc4bcc65c3a2bb64256010a3eb6f..acec5a89685f5c002e41118258a62e140b2eb5ec 100644
--- a/templates/ansible/ubuntu/inventory.tpl
+++ b/templates/ansible/ubuntu/inventory.tpl
@@ -1,5 +1,5 @@
 [{{ "servers_for_" ~ name }}]
-instance_ip_{{ node.vm_name }}
+{% raw %}{{ instance_ip_{% endraw %}{{ node.vm_name }} {% raw %}}}{% endraw %}
 
 [{{ "servers_for_" ~ name }}:vars]
 ansible_connection=ssh