From b62619e9d36cc505ad4d15d53f0703dc1a48435d Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 28 May 2015 19:42:53 +0000 Subject: [PATCH] Duh. Need to quote this because it's multiline --- tasks/virt_instance_create.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml index 4e8fec75f7..5eed6da551 100644 --- a/tasks/virt_instance_create.yml +++ b/tasks/virt_instance_create.yml @@ -56,7 +56,7 @@ when: inventory_hostname not in result.list_vms - name: add new ssh host key (you still need to add it to official ssh_host_keys later) - local_action: known_hosts path={{item}} key={{ hostkey.stdout|string }} host={{ inventory_hostname }} state=present + local_action: known_hosts path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present ignore_errors: True with_items: - /root/.ssh/known_hosts