ok, lets try |str filter here.

This commit is contained in:
Kevin Fenzi 2015-05-28 19:05:46 +00:00
parent aed8829f96
commit c495f031d3

View file

@ -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|join }} host={{ inventory_hostname }} state=present
local_action: known_hosts path={{item}} key={{ hostkey.stdout|str }} host={{ inventory_hostname }} state=present
ignore_errors: True
with_items:
- /root/.ssh/known_hosts