{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls/11","id":77558407,"html_url":"https://github.com/FGtatsuro/ansible-ndenv/pull/11","diff_url":"https://github.com/FGtatsuro/ansible-ndenv/pull/11.diff","patch_url":"https://github.com/FGtatsuro/ansible-ndenv/pull/11.patch","issue_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues/11","number":11,"state":"open","locked":false,"title":"Refactor tasks to switch user without remote_user.","user":{"login":"FGtatsuro","id":204491,"avatar_url":"https://avatars.githubusercontent.com/u/204491?v=3","gravatar_id":"","url":"https://api.github.com/users/FGtatsuro","html_url":"https://github.com/FGtatsuro","followers_url":"https://api.github.com/users/FGtatsuro/followers","following_url":"https://api.github.com/users/FGtatsuro/following{/other_user}","gists_url":"https://api.github.com/users/FGtatsuro/gists{/gist_id}","starred_url":"https://api.github.com/users/FGtatsuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FGtatsuro/subscriptions","organizations_url":"https://api.github.com/users/FGtatsuro/orgs","repos_url":"https://api.github.com/users/FGtatsuro/repos","events_url":"https://api.github.com/users/FGtatsuro/events{/privacy}","received_events_url":"https://api.github.com/users/FGtatsuro/received_events","type":"User","site_admin":false},"body":"- In several cases, remote_user can't be overwritten in this role.\n- Following warning occurs, but become_method doesn't work well on\n  container.\n  - When become_method=sudo(default), almost containers don't have sudo\n    command.\n  - When become_method=su, docker connection plugin of Ansible doesn't\n    allow 'su' as become_method.\n\n```\n [WARNING]: Consider using 'become', 'become_method', and 'become_user' rather than running su\n```","created_at":"2016-07-15T03:23:52Z","updated_at":"2016-07-15T03:23:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls/11/commits","review_comments_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls/11/comments","review_comment_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues/11/comments","statuses_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/statuses/e2cfe082a35a1c34db40cc088a63fbfadc295f46","head":{"label":"FGtatsuro:switch_user_without_remote_user","ref":"switch_user_without_remote_user","sha":"e2cfe082a35a1c34db40cc088a63fbfadc295f46","user":{"login":"FGtatsuro","id":204491,"avatar_url":"https://avatars.githubusercontent.com/u/204491?v=3","gravatar_id":"","url":"https://api.github.com/users/FGtatsuro","html_url":"https://github.com/FGtatsuro","followers_url":"https://api.github.com/users/FGtatsuro/followers","following_url":"https://api.github.com/users/FGtatsuro/following{/other_user}","gists_url":"https://api.github.com/users/FGtatsuro/gists{/gist_id}","starred_url":"https://api.github.com/users/FGtatsuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FGtatsuro/subscriptions","organizations_url":"https://api.github.com/users/FGtatsuro/orgs","repos_url":"https://api.github.com/users/FGtatsuro/repos","events_url":"https://api.github.com/users/FGtatsuro/events{/privacy}","received_events_url":"https://api.github.com/users/FGtatsuro/received_events","type":"User","site_admin":false},"repo":{"id":56215187,"name":"ansible-ndenv","full_name":"FGtatsuro/ansible-ndenv","owner":{"login":"FGtatsuro","id":204491,"avatar_url":"https://avatars.githubusercontent.com/u/204491?v=3","gravatar_id":"","url":"https://api.github.com/users/FGtatsuro","html_url":"https://github.com/FGtatsuro","followers_url":"https://api.github.com/users/FGtatsuro/followers","following_url":"https://api.github.com/users/FGtatsuro/following{/other_user}","gists_url":"https://api.github.com/users/FGtatsuro/gists{/gist_id}","starred_url":"https://api.github.com/users/FGtatsuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FGtatsuro/subscriptions","organizations_url":"https://api.github.com/users/FGtatsuro/orgs","repos_url":"https://api.github.com/users/FGtatsuro/repos","events_url":"https://api.github.com/users/FGtatsuro/events{/privacy}","received_events_url":"https://api.github.com/users/FGtatsuro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FGtatsuro/ansible-ndenv","description":"Ansible role for ndenv.","fork":false,"url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv","forks_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/forks","keys_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/teams","hooks_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/hooks","issue_events_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues/events{/number}","events_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/events","assignees_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/assignees{/user}","branches_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/branches{/branch}","tags_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/tags","blobs_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/refs{/sha}","trees_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/statuses/{sha}","languages_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/languages","stargazers_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/stargazers","contributors_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/contributors","subscribers_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/subscribers","subscription_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/subscription","commits_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/commits{/sha}","git_commits_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/commits{/sha}","comments_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/comments{/number}","issue_comment_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues/comments{/number}","contents_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/contents/{+path}","compare_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/merges","archive_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/downloads","issues_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues{/number}","pulls_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls{/number}","milestones_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/milestones{/number}","notifications_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/labels{/name}","releases_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/releases{/id}","deployments_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/deployments","created_at":"2016-04-14T07:08:01Z","updated_at":"2016-07-01T10:58:40Z","pushed_at":"2016-07-15T03:23:05Z","git_url":"git://github.com/FGtatsuro/ansible-ndenv.git","ssh_url":"git@github.com:FGtatsuro/ansible-ndenv.git","clone_url":"https://github.com/FGtatsuro/ansible-ndenv.git","svn_url":"https://github.com/FGtatsuro/ansible-ndenv","homepage":null,"size":22,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"FGtatsuro:master","ref":"master","sha":"fde002428a00e26c8fff3565ed99ab8454c72c68","user":{"login":"FGtatsuro","id":204491,"avatar_url":"https://avatars.githubusercontent.com/u/204491?v=3","gravatar_id":"","url":"https://api.github.com/users/FGtatsuro","html_url":"https://github.com/FGtatsuro","followers_url":"https://api.github.com/users/FGtatsuro/followers","following_url":"https://api.github.com/users/FGtatsuro/following{/other_user}","gists_url":"https://api.github.com/users/FGtatsuro/gists{/gist_id}","starred_url":"https://api.github.com/users/FGtatsuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FGtatsuro/subscriptions","organizations_url":"https://api.github.com/users/FGtatsuro/orgs","repos_url":"https://api.github.com/users/FGtatsuro/repos","events_url":"https://api.github.com/users/FGtatsuro/events{/privacy}","received_events_url":"https://api.github.com/users/FGtatsuro/received_events","type":"User","site_admin":false},"repo":{"id":56215187,"name":"ansible-ndenv","full_name":"FGtatsuro/ansible-ndenv","owner":{"login":"FGtatsuro","id":204491,"avatar_url":"https://avatars.githubusercontent.com/u/204491?v=3","gravatar_id":"","url":"https://api.github.com/users/FGtatsuro","html_url":"https://github.com/FGtatsuro","followers_url":"https://api.github.com/users/FGtatsuro/followers","following_url":"https://api.github.com/users/FGtatsuro/following{/other_user}","gists_url":"https://api.github.com/users/FGtatsuro/gists{/gist_id}","starred_url":"https://api.github.com/users/FGtatsuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FGtatsuro/subscriptions","organizations_url":"https://api.github.com/users/FGtatsuro/orgs","repos_url":"https://api.github.com/users/FGtatsuro/repos","events_url":"https://api.github.com/users/FGtatsuro/events{/privacy}","received_events_url":"https://api.github.com/users/FGtatsuro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FGtatsuro/ansible-ndenv","description":"Ansible role for ndenv.","fork":false,"url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv","forks_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/forks","keys_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/teams","hooks_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/hooks","issue_events_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues/events{/number}","events_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/events","assignees_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/assignees{/user}","branches_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/branches{/branch}","tags_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/tags","blobs_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/refs{/sha}","trees_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/statuses/{sha}","languages_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/languages","stargazers_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/stargazers","contributors_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/contributors","subscribers_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/subscribers","subscription_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/subscription","commits_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/commits{/sha}","git_commits_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/git/commits{/sha}","comments_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/comments{/number}","issue_comment_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues/comments{/number}","contents_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/contents/{+path}","compare_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/merges","archive_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/downloads","issues_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues{/number}","pulls_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls{/number}","milestones_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/milestones{/number}","notifications_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/labels{/name}","releases_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/releases{/id}","deployments_url":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/deployments","created_at":"2016-04-14T07:08:01Z","updated_at":"2016-07-01T10:58:40Z","pushed_at":"2016-07-15T03:23:05Z","git_url":"git://github.com/FGtatsuro/ansible-ndenv.git","ssh_url":"git@github.com:FGtatsuro/ansible-ndenv.git","clone_url":"https://github.com/FGtatsuro/ansible-ndenv.git","svn_url":"https://github.com/FGtatsuro/ansible-ndenv","homepage":null,"size":22,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls/11"},"html":{"href":"https://github.com/FGtatsuro/ansible-ndenv/pull/11"},"issue":{"href":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues/11"},"comments":{"href":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/FGtatsuro/ansible-ndenv/statuses/e2cfe082a35a1c34db40cc088a63fbfadc295f46"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":8,"changed_files":1}}
{"actor":{"display_login":"FGtatsuro"}}