{"action":"closed","number":23,"pull_request":{"url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls/23","id":168887597,"html_url":"https://github.com/cloudalchemy/ansible-node-exporter/pull/23","diff_url":"https://github.com/cloudalchemy/ansible-node-exporter/pull/23.diff","patch_url":"https://github.com/cloudalchemy/ansible-node-exporter/pull/23.patch","issue_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/issues/23","number":23,"state":"closed","locked":false,"title":"Make Prometheus node exporter restart/reload with sudo privileges.","user":{"login":"swesterveld","id":638899,"avatar_url":"https://avatars2.githubusercontent.com/u/638899?v=4","gravatar_id":"","url":"https://api.github.com/users/swesterveld","html_url":"https://github.com/swesterveld","followers_url":"https://api.github.com/users/swesterveld/followers","following_url":"https://api.github.com/users/swesterveld/following{/other_user}","gists_url":"https://api.github.com/users/swesterveld/gists{/gist_id}","starred_url":"https://api.github.com/users/swesterveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swesterveld/subscriptions","organizations_url":"https://api.github.com/users/swesterveld/orgs","repos_url":"https://api.github.com/users/swesterveld/repos","events_url":"https://api.github.com/users/swesterveld/events{/privacy}","received_events_url":"https://api.github.com/users/swesterveld/received_events","type":"User","site_admin":false},"body":"I'm trying to include the `cloudalchemy.node-exporter` role from our own monitoring role like this:\r\n```\r\n- name: Deploy Prometheus Node Exporter\r\n  become: yes\r\n  include_role:\r\n    name: cloudalchemy.node-exporter\r\n  vars:\r\n  [...]\r\n```\r\nThis results in a fatal error, at the point when running the handler that should restart the node-exporter:\r\n```\r\nRUNNING HANDLER [cloudalchemy.node-exporter : restart node exporter] ****************************************************************************************************************\r\nfatal: [monitor]: FAILED! => {\"changed\": false, \"msg\": \"failure 1 during daemon-reload: Failed to execute operation: Interactive authentication required.\\n\"}\r\n```\r\nThe service could only be restarted with sudo-privileges, which in the case of an `include_role` or `import_role` won't get picked up correctly by the handler responsible for the service-restart/-reload.\r\nThis PR will make sure that the `node_exporter.service` will be restarted with the correct privileges.","created_at":"2018-02-13T16:12:14Z","updated_at":"2018-02-14T07:17:38Z","closed_at":"2018-02-14T07:17:38Z","merged_at":"2018-02-14T07:17:38Z","merge_commit_sha":"e7ba5faed61be686ad983b31da97dff1d2916a37","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls/23/commits","review_comments_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls/23/comments","review_comment_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/issues/23/comments","statuses_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/statuses/878be83bd26535da77971d79cc3623a14602d7c7","head":{"label":"swesterveld:fix_daemon_reload_for_role_include","ref":"fix_daemon_reload_for_role_include","sha":"878be83bd26535da77971d79cc3623a14602d7c7","user":{"login":"swesterveld","id":638899,"avatar_url":"https://avatars2.githubusercontent.com/u/638899?v=4","gravatar_id":"","url":"https://api.github.com/users/swesterveld","html_url":"https://github.com/swesterveld","followers_url":"https://api.github.com/users/swesterveld/followers","following_url":"https://api.github.com/users/swesterveld/following{/other_user}","gists_url":"https://api.github.com/users/swesterveld/gists{/gist_id}","starred_url":"https://api.github.com/users/swesterveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swesterveld/subscriptions","organizations_url":"https://api.github.com/users/swesterveld/orgs","repos_url":"https://api.github.com/users/swesterveld/repos","events_url":"https://api.github.com/users/swesterveld/events{/privacy}","received_events_url":"https://api.github.com/users/swesterveld/received_events","type":"User","site_admin":false},"repo":{"id":121401803,"name":"ansible-node-exporter","full_name":"swesterveld/ansible-node-exporter","owner":{"login":"swesterveld","id":638899,"avatar_url":"https://avatars2.githubusercontent.com/u/638899?v=4","gravatar_id":"","url":"https://api.github.com/users/swesterveld","html_url":"https://github.com/swesterveld","followers_url":"https://api.github.com/users/swesterveld/followers","following_url":"https://api.github.com/users/swesterveld/following{/other_user}","gists_url":"https://api.github.com/users/swesterveld/gists{/gist_id}","starred_url":"https://api.github.com/users/swesterveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swesterveld/subscriptions","organizations_url":"https://api.github.com/users/swesterveld/orgs","repos_url":"https://api.github.com/users/swesterveld/repos","events_url":"https://api.github.com/users/swesterveld/events{/privacy}","received_events_url":"https://api.github.com/users/swesterveld/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swesterveld/ansible-node-exporter","description":"Provision basic metrics exporter for prometheus monitoring tool","fork":true,"url":"https://api.github.com/repos/swesterveld/ansible-node-exporter","forks_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/forks","keys_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/teams","hooks_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/hooks","issue_events_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/issues/events{/number}","events_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/events","assignees_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/assignees{/user}","branches_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/branches{/branch}","tags_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/tags","blobs_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/languages","stargazers_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/stargazers","contributors_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/contributors","subscribers_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/subscribers","subscription_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/subscription","commits_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/contents/{+path}","compare_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/merges","archive_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/downloads","issues_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/issues{/number}","pulls_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/labels{/name}","releases_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/releases{/id}","deployments_url":"https://api.github.com/repos/swesterveld/ansible-node-exporter/deployments","created_at":"2018-02-13T15:50:18Z","updated_at":"2018-02-13T15:50:19Z","pushed_at":"2018-02-13T16:05:06Z","git_url":"git://github.com/swesterveld/ansible-node-exporter.git","ssh_url":"git@github.com:swesterveld/ansible-node-exporter.git","clone_url":"https://github.com/swesterveld/ansible-node-exporter.git","svn_url":"https://github.com/swesterveld/ansible-node-exporter","homepage":"","size":57,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cloudalchemy:master","ref":"master","sha":"9a65ab2d7edefcd6e0ac7a78d21149df5a4af13f","user":{"login":"cloudalchemy","id":30964538,"avatar_url":"https://avatars2.githubusercontent.com/u/30964538?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudalchemy","html_url":"https://github.com/cloudalchemy","followers_url":"https://api.github.com/users/cloudalchemy/followers","following_url":"https://api.github.com/users/cloudalchemy/following{/other_user}","gists_url":"https://api.github.com/users/cloudalchemy/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudalchemy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudalchemy/subscriptions","organizations_url":"https://api.github.com/users/cloudalchemy/orgs","repos_url":"https://api.github.com/users/cloudalchemy/repos","events_url":"https://api.github.com/users/cloudalchemy/events{/privacy}","received_events_url":"https://api.github.com/users/cloudalchemy/received_events","type":"Organization","site_admin":false},"repo":{"id":112219931,"name":"ansible-node-exporter","full_name":"cloudalchemy/ansible-node-exporter","owner":{"login":"cloudalchemy","id":30964538,"avatar_url":"https://avatars2.githubusercontent.com/u/30964538?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudalchemy","html_url":"https://github.com/cloudalchemy","followers_url":"https://api.github.com/users/cloudalchemy/followers","following_url":"https://api.github.com/users/cloudalchemy/following{/other_user}","gists_url":"https://api.github.com/users/cloudalchemy/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudalchemy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudalchemy/subscriptions","organizations_url":"https://api.github.com/users/cloudalchemy/orgs","repos_url":"https://api.github.com/users/cloudalchemy/repos","events_url":"https://api.github.com/users/cloudalchemy/events{/privacy}","received_events_url":"https://api.github.com/users/cloudalchemy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudalchemy/ansible-node-exporter","description":"Provision basic metrics exporter for prometheus monitoring tool","fork":false,"url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter","forks_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/forks","keys_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/teams","hooks_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/hooks","issue_events_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/issues/events{/number}","events_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/events","assignees_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/assignees{/user}","branches_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/branches{/branch}","tags_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/tags","blobs_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/languages","stargazers_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/stargazers","contributors_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/contributors","subscribers_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/subscribers","subscription_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/subscription","commits_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/contents/{+path}","compare_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/merges","archive_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/downloads","issues_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/issues{/number}","pulls_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/labels{/name}","releases_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/releases{/id}","deployments_url":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/deployments","created_at":"2017-11-27T16:24:33Z","updated_at":"2018-01-14T20:57:37Z","pushed_at":"2018-02-14T07:17:38Z","git_url":"git://github.com/cloudalchemy/ansible-node-exporter.git","ssh_url":"git@github.com:cloudalchemy/ansible-node-exporter.git","clone_url":"https://github.com/cloudalchemy/ansible-node-exporter.git","svn_url":"https://github.com/cloudalchemy/ansible-node-exporter","homepage":"","size":66,"stargazers_count":3,"watchers_count":3,"language":"Shell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls/23"},"html":{"href":"https://github.com/cloudalchemy/ansible-node-exporter/pull/23"},"issue":{"href":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/issues/23"},"comments":{"href":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/cloudalchemy/ansible-node-exporter/statuses/878be83bd26535da77971d79cc3623a14602d7c7"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"paulfantom","id":3531758,"avatar_url":"https://avatars1.githubusercontent.com/u/3531758?v=4","gravatar_id":"","url":"https://api.github.com/users/paulfantom","html_url":"https://github.com/paulfantom","followers_url":"https://api.github.com/users/paulfantom/followers","following_url":"https://api.github.com/users/paulfantom/following{/other_user}","gists_url":"https://api.github.com/users/paulfantom/gists{/gist_id}","starred_url":"https://api.github.com/users/paulfantom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulfantom/subscriptions","organizations_url":"https://api.github.com/users/paulfantom/orgs","repos_url":"https://api.github.com/users/paulfantom/repos","events_url":"https://api.github.com/users/paulfantom/events{/privacy}","received_events_url":"https://api.github.com/users/paulfantom/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"paulfantom"}}