{"action":"created","issue":{"url":"https://api.github.com/repos/weareinteractive/ansible-users/issues/18","repository_url":"https://api.github.com/repos/weareinteractive/ansible-users","labels_url":"https://api.github.com/repos/weareinteractive/ansible-users/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/weareinteractive/ansible-users/issues/18/comments","events_url":"https://api.github.com/repos/weareinteractive/ansible-users/issues/18/events","html_url":"https://github.com/weareinteractive/ansible-users/issues/18","id":238836315,"number":18,"title":"Support authorized key from file","user":{"login":"sankarsuda","id":798414,"avatar_url":"https://avatars2.githubusercontent.com/u/798414?v=4","gravatar_id":"","url":"https://api.github.com/users/sankarsuda","html_url":"https://github.com/sankarsuda","followers_url":"https://api.github.com/users/sankarsuda/followers","following_url":"https://api.github.com/users/sankarsuda/following{/other_user}","gists_url":"https://api.github.com/users/sankarsuda/gists{/gist_id}","starred_url":"https://api.github.com/users/sankarsuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sankarsuda/subscriptions","organizations_url":"https://api.github.com/users/sankarsuda/orgs","repos_url":"https://api.github.com/users/sankarsuda/repos","events_url":"https://api.github.com/users/sankarsuda/events{/privacy}","received_events_url":"https://api.github.com/users/sankarsuda/received_events","type":"User","site_admin":false},"labels":[{"id":118493584,"url":"https://api.github.com/repos/weareinteractive/ansible-users/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":118493585,"url":"https://api.github.com/repos/weareinteractive/ansible-users/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-27T12:37:12Z","updated_at":"2018-05-11T08:58:57Z","closed_at":null,"author_association":"NONE","body":"Hi @ franklinkim,\r\n\r\nIt will be greate providing the support of key file in authorized_keys: [] array along with the string.\r\nWe can able to provide path of the .pub file, that will be included in keys."},"comment":{"url":"https://api.github.com/repos/weareinteractive/ansible-users/issues/comments/388305232","html_url":"https://github.com/weareinteractive/ansible-users/issues/18#issuecomment-388305232","issue_url":"https://api.github.com/repos/weareinteractive/ansible-users/issues/18","id":388305232,"user":{"login":"ctorgalson","id":1063424,"avatar_url":"https://avatars2.githubusercontent.com/u/1063424?v=4","gravatar_id":"","url":"https://api.github.com/users/ctorgalson","html_url":"https://github.com/ctorgalson","followers_url":"https://api.github.com/users/ctorgalson/followers","following_url":"https://api.github.com/users/ctorgalson/following{/other_user}","gists_url":"https://api.github.com/users/ctorgalson/gists{/gist_id}","starred_url":"https://api.github.com/users/ctorgalson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctorgalson/subscriptions","organizations_url":"https://api.github.com/users/ctorgalson/orgs","repos_url":"https://api.github.com/users/ctorgalson/repos","events_url":"https://api.github.com/users/ctorgalson/events{/privacy}","received_events_url":"https://api.github.com/users/ctorgalson/received_events","type":"User","site_admin":false},"created_at":"2018-05-11T08:58:57Z","updated_at":"2018-05-11T08:58:57Z","author_association":"NONE","body":"Hi @franklinkim, @sankarsuda. This is already possible [using lookups](http://docs.ansible.com/ansible/latest/user_guide/playbooks_lookups.html#id3).\r\n\r\nTested with a var like this:\r\n\r\n```yaml\r\n  - username: \"ctorgalson\"\r\n    name: \"Christopher Torgalson\"\r\n    authorized_keys:\r\n      - \"{{ lookup('file', '/Users/ctorgalson/.ssh/id_rsa.pub') }}\"\r\n```\r\n\r\n@franklinkim Thanks for this role. Very useful."}}
{"actor":{"display_login":"ctorgalson"}}