I want to add the ssh key for my private git server to the known\_hosts file with ansible 1.9.3 but it doesn't work. 

I have the following entry in my playbook:

```
- name: add SSH host key
  known_hosts: name='myhost.com'
               key="{{ lookup('file', 'host_key.pub') }}"

```

I have copied /etc/ssh/ssh\_host\_rsa\_key.pub to host\_key.pub and the file looks like:

```
ssh-rsa AAAAB3NzaC1... root@myhost.com

```

If I run my playbook I always get the following error message:

```
TASK: [add SSH host key]
****************************************************** 
failed: [default] => {"cmd": "/usr/bin/ssh-keygen -F myhost.com -f /tmp/tmpe5KNIW", "failed": true, "rc": 1}

```

What I am doing wrong?