{"action":"created","comment":{"url":"https://api.github.com/repos/roots/trellis/pulls/comments/42322660","id":42322660,"diff_hunk":"@@ -6,7 +6,7 @@\n   lineinfile: dest=/etc/sudoers\n               state=present\n               regexp=\"^%sudo\"\n-              line=\"%sudo ALL=(ALL:ALL) ALL\"\n+              line=\"%sudo ALL={{ sudoer_passwordless | ternary('(ALL) NOPASSWD:', '(ALL:ALL)') }} ALL\"","path":"roles/users/tasks/main.yml","position":5,"original_position":5,"commit_id":"65c96d2e46aa30cf133b93758e80db562d57a3ea","original_commit_id":"65c96d2e46aa30cf133b93758e80db562d57a3ea","user":{"login":"swalkinshaw","id":295605,"avatar_url":"https://avatars.githubusercontent.com/u/295605?v=3","gravatar_id":"","url":"https://api.github.com/users/swalkinshaw","html_url":"https://github.com/swalkinshaw","followers_url":"https://api.github.com/users/swalkinshaw/followers","following_url":"https://api.github.com/users/swalkinshaw/following{/other_user}","gists_url":"https://api.github.com/users/swalkinshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/swalkinshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swalkinshaw/subscriptions","organizations_url":"https://api.github.com/users/swalkinshaw/orgs","repos_url":"https://api.github.com/users/swalkinshaw/repos","events_url":"https://api.github.com/users/swalkinshaw/events{/privacy}","received_events_url":"https://api.github.com/users/swalkinshaw/received_events","type":"User","site_admin":false},"body":"@chriszarate just realized an alternative solution I think might be better. Just have a variable called `sudo_group_permissions` which defaults to `(ALL:ALL)` and then you could customize it to `(ALL) NOPASSWD:`","created_at":"2015-10-18T16:17:42Z","updated_at":"2015-10-18T16:17:42Z","html_url":"https://github.com/roots/trellis/pull/357#discussion_r42322660","pull_request_url":"https://api.github.com/repos/roots/trellis/pulls/357","_links":{"self":{"href":"https://api.github.com/repos/roots/trellis/pulls/comments/42322660"},"html":{"href":"https://github.com/roots/trellis/pull/357#discussion_r42322660"},"pull_request":{"href":"https://api.github.com/repos/roots/trellis/pulls/357"}}},"pull_request":{"url":"https://api.github.com/repos/roots/trellis/pulls/357","id":45361948,"html_url":"https://github.com/roots/trellis/pull/357","diff_url":"https://github.com/roots/trellis/pull/357.diff","patch_url":"https://github.com/roots/trellis/pull/357.patch","issue_url":"https://api.github.com/repos/roots/trellis/issues/357","number":357,"state":"open","locked":false,"title":"Add sudoer_passwordless option.","user":{"login":"chriszarate","id":739304,"avatar_url":"https://avatars.githubusercontent.com/u/739304?v=3","gravatar_id":"","url":"https://api.github.com/users/chriszarate","html_url":"https://github.com/chriszarate","followers_url":"https://api.github.com/users/chriszarate/followers","following_url":"https://api.github.com/users/chriszarate/following{/other_user}","gists_url":"https://api.github.com/users/chriszarate/gists{/gist_id}","starred_url":"https://api.github.com/users/chriszarate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriszarate/subscriptions","organizations_url":"https://api.github.com/users/chriszarate/orgs","repos_url":"https://api.github.com/users/chriszarate/repos","events_url":"https://api.github.com/users/chriszarate/events{/privacy}","received_events_url":"https://api.github.com/users/chriszarate/received_events","type":"User","site_admin":false},"body":"Not sure if there's a philosophical objection to this, but I need it for my environment.","created_at":"2015-09-18T01:56:15Z","updated_at":"2015-10-18T16:17:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31e99e7a1211e8fa90dc9f207648221ce0d640c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/roots/trellis/pulls/357/commits","review_comments_url":"https://api.github.com/repos/roots/trellis/pulls/357/comments","review_comment_url":"https://api.github.com/repos/roots/trellis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/roots/trellis/issues/357/comments","statuses_url":"https://api.github.com/repos/roots/trellis/statuses/65c96d2e46aa30cf133b93758e80db562d57a3ea","head":{"label":"mlaa:sudoer-passwordless","ref":"sudoer-passwordless","sha":"65c96d2e46aa30cf133b93758e80db562d57a3ea","user":{"login":"mlaa","id":1437305,"avatar_url":"https://avatars.githubusercontent.com/u/1437305?v=3","gravatar_id":"","url":"https://api.github.com/users/mlaa","html_url":"https://github.com/mlaa","followers_url":"https://api.github.com/users/mlaa/followers","following_url":"https://api.github.com/users/mlaa/following{/other_user}","gists_url":"https://api.github.com/users/mlaa/gists{/gist_id}","starred_url":"https://api.github.com/users/mlaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlaa/subscriptions","organizations_url":"https://api.github.com/users/mlaa/orgs","repos_url":"https://api.github.com/users/mlaa/repos","events_url":"https://api.github.com/users/mlaa/events{/privacy}","received_events_url":"https://api.github.com/users/mlaa/received_events","type":"Organization","site_admin":false},"repo":{"id":40380021,"name":"trellis","full_name":"mlaa/trellis","owner":{"login":"mlaa","id":1437305,"avatar_url":"https://avatars.githubusercontent.com/u/1437305?v=3","gravatar_id":"","url":"https://api.github.com/users/mlaa","html_url":"https://github.com/mlaa","followers_url":"https://api.github.com/users/mlaa/followers","following_url":"https://api.github.com/users/mlaa/following{/other_user}","gists_url":"https://api.github.com/users/mlaa/gists{/gist_id}","starred_url":"https://api.github.com/users/mlaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlaa/subscriptions","organizations_url":"https://api.github.com/users/mlaa/orgs","repos_url":"https://api.github.com/users/mlaa/repos","events_url":"https://api.github.com/users/mlaa/events{/privacy}","received_events_url":"https://api.github.com/users/mlaa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mlaa/trellis","description":"Ansible playbooks for a Bedrock based WordPress LEMP app server","fork":true,"url":"https://api.github.com/repos/mlaa/trellis","forks_url":"https://api.github.com/repos/mlaa/trellis/forks","keys_url":"https://api.github.com/repos/mlaa/trellis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mlaa/trellis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mlaa/trellis/teams","hooks_url":"https://api.github.com/repos/mlaa/trellis/hooks","issue_events_url":"https://api.github.com/repos/mlaa/trellis/issues/events{/number}","events_url":"https://api.github.com/repos/mlaa/trellis/events","assignees_url":"https://api.github.com/repos/mlaa/trellis/assignees{/user}","branches_url":"https://api.github.com/repos/mlaa/trellis/branches{/branch}","tags_url":"https://api.github.com/repos/mlaa/trellis/tags","blobs_url":"https://api.github.com/repos/mlaa/trellis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mlaa/trellis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mlaa/trellis/git/refs{/sha}","trees_url":"https://api.github.com/repos/mlaa/trellis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mlaa/trellis/statuses/{sha}","languages_url":"https://api.github.com/repos/mlaa/trellis/languages","stargazers_url":"https://api.github.com/repos/mlaa/trellis/stargazers","contributors_url":"https://api.github.com/repos/mlaa/trellis/contributors","subscribers_url":"https://api.github.com/repos/mlaa/trellis/subscribers","subscription_url":"https://api.github.com/repos/mlaa/trellis/subscription","commits_url":"https://api.github.com/repos/mlaa/trellis/commits{/sha}","git_commits_url":"https://api.github.com/repos/mlaa/trellis/git/commits{/sha}","comments_url":"https://api.github.com/repos/mlaa/trellis/comments{/number}","issue_comment_url":"https://api.github.com/repos/mlaa/trellis/issues/comments{/number}","contents_url":"https://api.github.com/repos/mlaa/trellis/contents/{+path}","compare_url":"https://api.github.com/repos/mlaa/trellis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mlaa/trellis/merges","archive_url":"https://api.github.com/repos/mlaa/trellis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mlaa/trellis/downloads","issues_url":"https://api.github.com/repos/mlaa/trellis/issues{/number}","pulls_url":"https://api.github.com/repos/mlaa/trellis/pulls{/number}","milestones_url":"https://api.github.com/repos/mlaa/trellis/milestones{/number}","notifications_url":"https://api.github.com/repos/mlaa/trellis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mlaa/trellis/labels{/name}","releases_url":"https://api.github.com/repos/mlaa/trellis/releases{/id}","created_at":"2015-08-07T20:38:03Z","updated_at":"2015-08-07T20:38:03Z","pushed_at":"2015-10-16T18:33:36Z","git_url":"git://github.com/mlaa/trellis.git","ssh_url":"git@github.com:mlaa/trellis.git","clone_url":"https://github.com/mlaa/trellis.git","svn_url":"https://github.com/mlaa/trellis","homepage":"https://roots.io/trellis/","size":598,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"roots:master","ref":"master","sha":"7f78498a099784816d7ee25987a57f6791c71bd9","user":{"login":"roots","id":4986074,"avatar_url":"https://avatars.githubusercontent.com/u/4986074?v=3","gravatar_id":"","url":"https://api.github.com/users/roots","html_url":"https://github.com/roots","followers_url":"https://api.github.com/users/roots/followers","following_url":"https://api.github.com/users/roots/following{/other_user}","gists_url":"https://api.github.com/users/roots/gists{/gist_id}","starred_url":"https://api.github.com/users/roots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roots/subscriptions","organizations_url":"https://api.github.com/users/roots/orgs","repos_url":"https://api.github.com/users/roots/repos","events_url":"https://api.github.com/users/roots/events{/privacy}","received_events_url":"https://api.github.com/users/roots/received_events","type":"Organization","site_admin":false},"repo":{"id":18852165,"name":"trellis","full_name":"roots/trellis","owner":{"login":"roots","id":4986074,"avatar_url":"https://avatars.githubusercontent.com/u/4986074?v=3","gravatar_id":"","url":"https://api.github.com/users/roots","html_url":"https://github.com/roots","followers_url":"https://api.github.com/users/roots/followers","following_url":"https://api.github.com/users/roots/following{/other_user}","gists_url":"https://api.github.com/users/roots/gists{/gist_id}","starred_url":"https://api.github.com/users/roots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roots/subscriptions","organizations_url":"https://api.github.com/users/roots/orgs","repos_url":"https://api.github.com/users/roots/repos","events_url":"https://api.github.com/users/roots/events{/privacy}","received_events_url":"https://api.github.com/users/roots/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/roots/trellis","description":"End-to-end automated WordPress environment management via Ansible.","fork":false,"url":"https://api.github.com/repos/roots/trellis","forks_url":"https://api.github.com/repos/roots/trellis/forks","keys_url":"https://api.github.com/repos/roots/trellis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roots/trellis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roots/trellis/teams","hooks_url":"https://api.github.com/repos/roots/trellis/hooks","issue_events_url":"https://api.github.com/repos/roots/trellis/issues/events{/number}","events_url":"https://api.github.com/repos/roots/trellis/events","assignees_url":"https://api.github.com/repos/roots/trellis/assignees{/user}","branches_url":"https://api.github.com/repos/roots/trellis/branches{/branch}","tags_url":"https://api.github.com/repos/roots/trellis/tags","blobs_url":"https://api.github.com/repos/roots/trellis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roots/trellis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roots/trellis/git/refs{/sha}","trees_url":"https://api.github.com/repos/roots/trellis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roots/trellis/statuses/{sha}","languages_url":"https://api.github.com/repos/roots/trellis/languages","stargazers_url":"https://api.github.com/repos/roots/trellis/stargazers","contributors_url":"https://api.github.com/repos/roots/trellis/contributors","subscribers_url":"https://api.github.com/repos/roots/trellis/subscribers","subscription_url":"https://api.github.com/repos/roots/trellis/subscription","commits_url":"https://api.github.com/repos/roots/trellis/commits{/sha}","git_commits_url":"https://api.github.com/repos/roots/trellis/git/commits{/sha}","comments_url":"https://api.github.com/repos/roots/trellis/comments{/number}","issue_comment_url":"https://api.github.com/repos/roots/trellis/issues/comments{/number}","contents_url":"https://api.github.com/repos/roots/trellis/contents/{+path}","compare_url":"https://api.github.com/repos/roots/trellis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roots/trellis/merges","archive_url":"https://api.github.com/repos/roots/trellis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roots/trellis/downloads","issues_url":"https://api.github.com/repos/roots/trellis/issues{/number}","pulls_url":"https://api.github.com/repos/roots/trellis/pulls{/number}","milestones_url":"https://api.github.com/repos/roots/trellis/milestones{/number}","notifications_url":"https://api.github.com/repos/roots/trellis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roots/trellis/labels{/name}","releases_url":"https://api.github.com/repos/roots/trellis/releases{/id}","created_at":"2014-04-16T19:08:33Z","updated_at":"2015-10-16T16:47:13Z","pushed_at":"2015-10-17T15:36:10Z","git_url":"git://github.com/roots/trellis.git","ssh_url":"git@github.com:roots/trellis.git","clone_url":"https://github.com/roots/trellis.git","svn_url":"https://github.com/roots/trellis","homepage":"https://roots.io/trellis/","size":2932,"stargazers_count":541,"watchers_count":541,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":194,"mirror_url":null,"open_issues_count":27,"forks":194,"open_issues":27,"watchers":541,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/roots/trellis/pulls/357"},"html":{"href":"https://github.com/roots/trellis/pull/357"},"issue":{"href":"https://api.github.com/repos/roots/trellis/issues/357"},"comments":{"href":"https://api.github.com/repos/roots/trellis/issues/357/comments"},"review_comments":{"href":"https://api.github.com/repos/roots/trellis/pulls/357/comments"},"review_comment":{"href":"https://api.github.com/repos/roots/trellis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/roots/trellis/pulls/357/commits"},"statuses":{"href":"https://api.github.com/repos/roots/trellis/statuses/65c96d2e46aa30cf133b93758e80db562d57a3ea"}}}}