{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/664","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/664/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/664/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/664/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/664","id":92027661,"number":664,"title":"known_hosts module not working ?","user":{"login":"mmallejac","id":11666281,"avatar_url":"https://avatars.githubusercontent.com/u/11666281?v=3","gravatar_id":"","url":"https://api.github.com/users/mmallejac","html_url":"https://github.com/mmallejac","followers_url":"https://api.github.com/users/mmallejac/followers","following_url":"https://api.github.com/users/mmallejac/following{/other_user}","gists_url":"https://api.github.com/users/mmallejac/gists{/gist_id}","starred_url":"https://api.github.com/users/mmallejac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmallejac/subscriptions","organizations_url":"https://api.github.com/users/mmallejac/orgs","repos_url":"https://api.github.com/users/mmallejac/repos","events_url":"https://api.github.com/users/mmallejac/events{/privacy}","received_events_url":"https://api.github.com/users/mmallejac/received_events","type":"User","site_admin":false},"labels":[{"id":437719515,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/affects_1.9","name":"affects_1.9","color":"5319e7","default":false},{"id":132898023,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":132898205,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/needs_info","name":"needs_info","color":"eb6420","default":false},{"id":132897951,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/P4","name":"P4","color":"bfe5bf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2015-06-30T08:45:22Z","updated_at":"2016-11-10T13:09:41Z","closed_at":"2016-11-10T13:09:41Z","body":"##### Issue Type:\n\nBug Report\n##### Component Name:\n\nknown_hosts\n##### Ansible Version:\n\nansible --version\nansible 1.9.2\n##### Ansible Configuration:\n\nN/A\n##### Environment:\n\napt-add-repository ppa:ansible/ansible\naptitude update\naptitude install ansible python-pip \n\non Ubuntu 14.04.2 LTS\n##### Summary:\n\nThis is a copy/confirmation of https://github.com/ansible/ansible/issues/11222\nTrying for instance to add his own public key to itself, so ssh root@localhost would work, maybe not using the module correctly ?\n##### Steps To Reproduce:\n\n```\n  - name: add itself to known_hosts list\n    known_hosts: host={{ inventory_hostname }} key=\"{{ lookup('file', dataDir + '/' + inventory_hostname + '/id_rsa.pub') }}\"\n```\n##### Expected Results:\n\non target host, ssh localhost should work without asking add fingerprint\n##### Actual Results:\n\n```\nfailed: [myHost] => {\"cmd\": \"/usr/bin/ssh-keygen -F myHost -f /tmp/tmpE7kC4N\", \"failed\": true, \"rc\": 1}\nstderr: line 1 invalid key: ssh-rsa...\n/tmp/tmpE7kC4N is not a valid known_hosts file.\n\nmsg: line 1 invalid key: ssh-rsa...\n/tmp/tmpE7kC4N is not a valid known_hosts file.\n```\n"}}
{"actor":{"display_login":"ansibot"}}