{"action":"created","comment":{"url":"https://api.github.com/repos/edx/configuration/pulls/comments/67909735","id":67909735,"diff_hunk":"@@ -98,29 +98,40 @@\n     mode: 0440 \n     validate: 'visudo -cf %s'\n \n-- name: create the users\n+- name: Create the users\n   user:\n     name: \"{{ item.name }}\"\n     shell: /bin/bash\n     remove: yes\n     state: \"{{ item.state | default('present') }}\"\n   with_items: \"{{ user_info }}\"\n \n-- name: assign admin role to admin users\n+- name: Assign admin role to admin users\n   user:\n     name: \"{{ item.name }}\"\n     groups: edxadmin\n   when: item.type is defined and item.type == 'admin' and item.get('state', 'present') == 'present'\n   with_items: \"{{ user_info }}\"\n \n-- name: get github key(s) and update the authorized_keys file\n+- name: Check the ssh key(s) for user(s) over github\n+  uri:\n+    url: \"https://github.com/{{ item.name }}.keys\"\n+  with_items: \"{{ user_info }}\"\n+  register: github_users_return\n+\n+- fail:\n+    msg: \"User {{ item.item.name }} didn't added ssh key to his account over github\"","path":"playbooks/roles/user/tasks/main.yml","position":54,"original_position":54,"commit_id":"718711a5eba338f9ef851d4f3383e08bbd0a8515","original_commit_id":"718711a5eba338f9ef851d4f3383e08bbd0a8515","user":{"login":"arbabnazar","id":7621775,"avatar_url":"https://avatars.githubusercontent.com/u/7621775?v=3","gravatar_id":"","url":"https://api.github.com/users/arbabnazar","html_url":"https://github.com/arbabnazar","followers_url":"https://api.github.com/users/arbabnazar/followers","following_url":"https://api.github.com/users/arbabnazar/following{/other_user}","gists_url":"https://api.github.com/users/arbabnazar/gists{/gist_id}","starred_url":"https://api.github.com/users/arbabnazar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbabnazar/subscriptions","organizations_url":"https://api.github.com/users/arbabnazar/orgs","repos_url":"https://api.github.com/users/arbabnazar/repos","events_url":"https://api.github.com/users/arbabnazar/events{/privacy}","received_events_url":"https://api.github.com/users/arbabnazar/received_events","type":"User","site_admin":false},"body":"Thanks @feanil, I'll modified it in new PR","created_at":"2016-06-21T17:07:02Z","updated_at":"2016-06-21T17:07:02Z","html_url":"https://github.com/edx/configuration/pull/3144#discussion_r67909735","pull_request_url":"https://api.github.com/repos/edx/configuration/pulls/3144","_links":{"self":{"href":"https://api.github.com/repos/edx/configuration/pulls/comments/67909735"},"html":{"href":"https://github.com/edx/configuration/pull/3144#discussion_r67909735"},"pull_request":{"href":"https://api.github.com/repos/edx/configuration/pulls/3144"}}},"pull_request":{"url":"https://api.github.com/repos/edx/configuration/pulls/3144","id":74570367,"html_url":"https://github.com/edx/configuration/pull/3144","diff_url":"https://github.com/edx/configuration/pull/3144.diff","patch_url":"https://github.com/edx/configuration/pull/3144.patch","issue_url":"https://api.github.com/repos/edx/configuration/issues/3144","number":3144,"state":"closed","locked":false,"title":"OPS-1433 grant-ssh access job should fail if user has no keys","user":{"login":"arbabnazar","id":7621775,"avatar_url":"https://avatars.githubusercontent.com/u/7621775?v=3","gravatar_id":"","url":"https://api.github.com/users/arbabnazar","html_url":"https://github.com/arbabnazar","followers_url":"https://api.github.com/users/arbabnazar/followers","following_url":"https://api.github.com/users/arbabnazar/following{/other_user}","gists_url":"https://api.github.com/users/arbabnazar/gists{/gist_id}","starred_url":"https://api.github.com/users/arbabnazar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbabnazar/subscriptions","organizations_url":"https://api.github.com/users/arbabnazar/orgs","repos_url":"https://api.github.com/users/arbabnazar/repos","events_url":"https://api.github.com/users/arbabnazar/events{/privacy}","received_events_url":"https://api.github.com/users/arbabnazar/received_events","type":"User","site_admin":false},"body":"@edx/devops kindly review. Thanks\r\n\r\n[Job Reference](ansible-grant-ssh-access/1244/console)","created_at":"2016-06-21T08:31:38Z","updated_at":"2016-06-21T17:07:02Z","closed_at":"2016-06-21T16:59:02Z","merged_at":"2016-06-21T16:59:02Z","merge_commit_sha":"ca65d96a0be766fb6a37f8de1e03ddb01ddbac87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/configuration/pulls/3144/commits","review_comments_url":"https://api.github.com/repos/edx/configuration/pulls/3144/comments","review_comment_url":"https://api.github.com/repos/edx/configuration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/configuration/issues/3144/comments","statuses_url":"https://api.github.com/repos/edx/configuration/statuses/718711a5eba338f9ef851d4f3383e08bbd0a8515","head":{"label":"edx:arbab/ops-1433","ref":"arbab/ops-1433","sha":"718711a5eba338f9ef851d4f3383e08bbd0a8515","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":9478219,"name":"configuration","full_name":"edx/configuration","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/configuration","description":"a simple, but flexible, way for anyone to stand up an instance of the edX platform that is fully configured and ready-to-go","fork":false,"url":"https://api.github.com/repos/edx/configuration","forks_url":"https://api.github.com/repos/edx/configuration/forks","keys_url":"https://api.github.com/repos/edx/configuration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/configuration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/configuration/teams","hooks_url":"https://api.github.com/repos/edx/configuration/hooks","issue_events_url":"https://api.github.com/repos/edx/configuration/issues/events{/number}","events_url":"https://api.github.com/repos/edx/configuration/events","assignees_url":"https://api.github.com/repos/edx/configuration/assignees{/user}","branches_url":"https://api.github.com/repos/edx/configuration/branches{/branch}","tags_url":"https://api.github.com/repos/edx/configuration/tags","blobs_url":"https://api.github.com/repos/edx/configuration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/configuration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/configuration/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/configuration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/configuration/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/configuration/languages","stargazers_url":"https://api.github.com/repos/edx/configuration/stargazers","contributors_url":"https://api.github.com/repos/edx/configuration/contributors","subscribers_url":"https://api.github.com/repos/edx/configuration/subscribers","subscription_url":"https://api.github.com/repos/edx/configuration/subscription","commits_url":"https://api.github.com/repos/edx/configuration/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/configuration/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/configuration/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/configuration/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/configuration/contents/{+path}","compare_url":"https://api.github.com/repos/edx/configuration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/configuration/merges","archive_url":"https://api.github.com/repos/edx/configuration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/configuration/downloads","issues_url":"https://api.github.com/repos/edx/configuration/issues{/number}","pulls_url":"https://api.github.com/repos/edx/configuration/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/configuration/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/configuration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/configuration/labels{/name}","releases_url":"https://api.github.com/repos/edx/configuration/releases{/id}","deployments_url":"https://api.github.com/repos/edx/configuration/deployments","created_at":"2013-04-16T17:23:42Z","updated_at":"2016-06-20T18:49:54Z","pushed_at":"2016-06-21T16:59:04Z","git_url":"git://github.com/edx/configuration.git","ssh_url":"git@github.com:edx/configuration.git","clone_url":"https://github.com/edx/configuration.git","svn_url":"https://github.com/edx/configuration","homepage":"","size":41533,"stargazers_count":521,"watchers_count":521,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":509,"mirror_url":null,"open_issues_count":59,"forks":509,"open_issues":59,"watchers":521,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"1ab5965143a2ff6835a0edc7438e5a67adfe8e33","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":9478219,"name":"configuration","full_name":"edx/configuration","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/configuration","description":"a simple, but flexible, way for anyone to stand up an instance of the edX platform that is fully configured and ready-to-go","fork":false,"url":"https://api.github.com/repos/edx/configuration","forks_url":"https://api.github.com/repos/edx/configuration/forks","keys_url":"https://api.github.com/repos/edx/configuration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/configuration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/configuration/teams","hooks_url":"https://api.github.com/repos/edx/configuration/hooks","issue_events_url":"https://api.github.com/repos/edx/configuration/issues/events{/number}","events_url":"https://api.github.com/repos/edx/configuration/events","assignees_url":"https://api.github.com/repos/edx/configuration/assignees{/user}","branches_url":"https://api.github.com/repos/edx/configuration/branches{/branch}","tags_url":"https://api.github.com/repos/edx/configuration/tags","blobs_url":"https://api.github.com/repos/edx/configuration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/configuration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/configuration/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/configuration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/configuration/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/configuration/languages","stargazers_url":"https://api.github.com/repos/edx/configuration/stargazers","contributors_url":"https://api.github.com/repos/edx/configuration/contributors","subscribers_url":"https://api.github.com/repos/edx/configuration/subscribers","subscription_url":"https://api.github.com/repos/edx/configuration/subscription","commits_url":"https://api.github.com/repos/edx/configuration/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/configuration/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/configuration/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/configuration/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/configuration/contents/{+path}","compare_url":"https://api.github.com/repos/edx/configuration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/configuration/merges","archive_url":"https://api.github.com/repos/edx/configuration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/configuration/downloads","issues_url":"https://api.github.com/repos/edx/configuration/issues{/number}","pulls_url":"https://api.github.com/repos/edx/configuration/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/configuration/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/configuration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/configuration/labels{/name}","releases_url":"https://api.github.com/repos/edx/configuration/releases{/id}","deployments_url":"https://api.github.com/repos/edx/configuration/deployments","created_at":"2013-04-16T17:23:42Z","updated_at":"2016-06-20T18:49:54Z","pushed_at":"2016-06-21T16:59:04Z","git_url":"git://github.com/edx/configuration.git","ssh_url":"git@github.com:edx/configuration.git","clone_url":"https://github.com/edx/configuration.git","svn_url":"https://github.com/edx/configuration","homepage":"","size":41533,"stargazers_count":521,"watchers_count":521,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":509,"mirror_url":null,"open_issues_count":59,"forks":509,"open_issues":59,"watchers":521,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/configuration/pulls/3144"},"html":{"href":"https://github.com/edx/configuration/pull/3144"},"issue":{"href":"https://api.github.com/repos/edx/configuration/issues/3144"},"comments":{"href":"https://api.github.com/repos/edx/configuration/issues/3144/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/configuration/pulls/3144/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/configuration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/configuration/pulls/3144/commits"},"statuses":{"href":"https://api.github.com/repos/edx/configuration/statuses/718711a5eba338f9ef851d4f3383e08bbd0a8515"}}}}
{"actor":{"display_login":"arbabnazar"}}