{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/575","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/575/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/575/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/575","id":52953554,"number":575,"title":"Request for ec2 module to retrieve and store ssh host fingerprint in known_hosts","user":{"login":"junglhilt","id":7324913,"avatar_url":"https://avatars.githubusercontent.com/u/7324913?v=3","gravatar_id":"","url":"https://api.github.com/users/junglhilt","html_url":"https://github.com/junglhilt","followers_url":"https://api.github.com/users/junglhilt/followers","following_url":"https://api.github.com/users/junglhilt/following{/other_user}","gists_url":"https://api.github.com/users/junglhilt/gists{/gist_id}","starred_url":"https://api.github.com/users/junglhilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junglhilt/subscriptions","organizations_url":"https://api.github.com/users/junglhilt/orgs","repos_url":"https://api.github.com/users/junglhilt/repos","events_url":"https://api.github.com/users/junglhilt/events{/privacy}","received_events_url":"https://api.github.com/users/junglhilt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/feature_idea","name":"feature_idea","color":"006b75"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-12-27T09:58:10Z","updated_at":"2015-09-21T23:02:39Z","closed_at":null,"body":"##### Issue Type: \r\n\r\nFeature Idea\r\n\r\n##### Ansible Version: \r\n\r\nansible 1.8.2\r\n  configured module search path = None\r\n\r\n##### Environment:\r\n\r\nmanaging : ubuntu 12.04 \r\nmanagement machine : OSX but it is not really applicable \r\n\r\n##### Summary:\r\n\r\nAdd ssh host key fingerprint to known_hosts when using the ec2 module to initialise instances.\r\n\r\n##### Steps To Reproduce:\r\n\r\nWhen creating an instance in ec2 it would save a lot of time if the Ansible ec2 module could retrieve the ssh host key fingerprint from the console output using the ec2 api (ec2-get-console-output or boto) and then place it in my known_hosts.\r\n\r\nI am using ami-f41a49a6 which is an ubuntu image. I am guessing this depends on cloud-init to provide the ssh host key fingerprint to the ec2 metadata service?\r\n\r\n##### Expected Results:\r\n\r\nThe result would be being able to immediately use Ansible to provision a host without prompting to verify the ssh host key fingerprint (I know this can be disabled by I am concerned with the risk of man in the middle attacks) and then like. \r\n\r\n##### Actual Results:\r\n\r\nThe ec2 module doesn't even seem to be aware of the ssh host key fingerprint.\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/142132803","html_url":"https://github.com/ansible/ansible-modules-core/issues/575#issuecomment-142132803","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/575","id":142132803,"user":{"login":"junglhilt","id":7324913,"avatar_url":"https://avatars.githubusercontent.com/u/7324913?v=3","gravatar_id":"","url":"https://api.github.com/users/junglhilt","html_url":"https://github.com/junglhilt","followers_url":"https://api.github.com/users/junglhilt/followers","following_url":"https://api.github.com/users/junglhilt/following{/other_user}","gists_url":"https://api.github.com/users/junglhilt/gists{/gist_id}","starred_url":"https://api.github.com/users/junglhilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junglhilt/subscriptions","organizations_url":"https://api.github.com/users/junglhilt/orgs","repos_url":"https://api.github.com/users/junglhilt/repos","events_url":"https://api.github.com/users/junglhilt/events{/privacy}","received_events_url":"https://api.github.com/users/junglhilt/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T23:02:39Z","updated_at":"2015-09-21T23:02:39Z","body":"@bcoca Any updates on when this can be merged?"}}