{"action":"created","comment":{"url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/comments/81361770","pull_request_review_id":2348346,"id":81361770,"diff_hunk":"@@ -26,5 +26,8 @@\n     src: etc/apt/preferences.d/deb_nodesource_com_node.pref.2\n     dest: /etc/apt/preferences.d/deb_nodesource_com_node.pref\n \n+- name: Uninstall existing installations of Node.js\n+  apt: name=nodejs state=absent\n+","path":"tasks/main.yml","position":6,"original_position":6,"commit_id":"7d80f625422b97d58c3a1273db64eaaf86d05c53","original_commit_id":"7d80f625422b97d58c3a1273db64eaaf86d05c53","user":{"login":"kitsunde","id":48965,"avatar_url":"https://avatars.githubusercontent.com/u/48965?v=3","gravatar_id":"","url":"https://api.github.com/users/kitsunde","html_url":"https://github.com/kitsunde","followers_url":"https://api.github.com/users/kitsunde/followers","following_url":"https://api.github.com/users/kitsunde/following{/other_user}","gists_url":"https://api.github.com/users/kitsunde/gists{/gist_id}","starred_url":"https://api.github.com/users/kitsunde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitsunde/subscriptions","organizations_url":"https://api.github.com/users/kitsunde/orgs","repos_url":"https://api.github.com/users/kitsunde/repos","events_url":"https://api.github.com/users/kitsunde/events{/privacy}","received_events_url":"https://api.github.com/users/kitsunde/received_events","type":"User","site_admin":false},"body":"Is there some way of making this check it is necessary? It would be way too excessive to have node reinstall itself every time we run through ansible.","created_at":"2016-09-30T15:31:36Z","updated_at":"2016-09-30T15:31:37Z","html_url":"https://github.com/nodesource/ansible-nodejs-role/pull/14#discussion_r81361770","pull_request_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/comments/81361770"},"html":{"href":"https://github.com/nodesource/ansible-nodejs-role/pull/14#discussion_r81361770"},"pull_request":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/14","id":43100392,"html_url":"https://github.com/nodesource/ansible-nodejs-role/pull/14","diff_url":"https://github.com/nodesource/ansible-nodejs-role/pull/14.diff","patch_url":"https://github.com/nodesource/ansible-nodejs-role/pull/14.patch","issue_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/issues/14","number":14,"state":"open","locked":false,"title":"added task to uninstall before installing new version - allows change…","user":{"login":"fubarhouse","id":3070264,"avatar_url":"https://avatars.githubusercontent.com/u/3070264?v=3","gravatar_id":"","url":"https://api.github.com/users/fubarhouse","html_url":"https://github.com/fubarhouse","followers_url":"https://api.github.com/users/fubarhouse/followers","following_url":"https://api.github.com/users/fubarhouse/following{/other_user}","gists_url":"https://api.github.com/users/fubarhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/fubarhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fubarhouse/subscriptions","organizations_url":"https://api.github.com/users/fubarhouse/orgs","repos_url":"https://api.github.com/users/fubarhouse/repos","events_url":"https://api.github.com/users/fubarhouse/events{/privacy}","received_events_url":"https://api.github.com/users/fubarhouse/received_events","type":"User","site_admin":false},"body":"Allow function to change versions of Node.js if the nodejs version variable changes to allow seamless porting between the available versions.\r\n\r\nTested with DrupalVM on provision, and reprovision between both versions, and has no effect when install hasn't been previously executed from the playbook.","created_at":"2015-08-22T08:57:04Z","updated_at":"2016-09-30T15:31:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ea77d8ce2b4b6934581abca9bb2f9a53d75fea3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/14/commits","review_comments_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/14/comments","review_comment_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/issues/14/comments","statuses_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/statuses/7d80f625422b97d58c3a1273db64eaaf86d05c53","head":{"label":"fubarhouse:master","ref":"master","sha":"7d80f625422b97d58c3a1273db64eaaf86d05c53","user":{"login":"fubarhouse","id":3070264,"avatar_url":"https://avatars.githubusercontent.com/u/3070264?v=3","gravatar_id":"","url":"https://api.github.com/users/fubarhouse","html_url":"https://github.com/fubarhouse","followers_url":"https://api.github.com/users/fubarhouse/followers","following_url":"https://api.github.com/users/fubarhouse/following{/other_user}","gists_url":"https://api.github.com/users/fubarhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/fubarhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fubarhouse/subscriptions","organizations_url":"https://api.github.com/users/fubarhouse/orgs","repos_url":"https://api.github.com/users/fubarhouse/repos","events_url":"https://api.github.com/users/fubarhouse/events{/privacy}","received_events_url":"https://api.github.com/users/fubarhouse/received_events","type":"User","site_admin":false},"repo":null},"base":{"label":"nodesource:master","ref":"master","sha":"592a239dca52e1c5ff79cfefd0072efe3831428e","user":{"login":"nodesource","id":6759417,"avatar_url":"https://avatars.githubusercontent.com/u/6759417?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesource","html_url":"https://github.com/nodesource","followers_url":"https://api.github.com/users/nodesource/followers","following_url":"https://api.github.com/users/nodesource/following{/other_user}","gists_url":"https://api.github.com/users/nodesource/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesource/subscriptions","organizations_url":"https://api.github.com/users/nodesource/orgs","repos_url":"https://api.github.com/users/nodesource/repos","events_url":"https://api.github.com/users/nodesource/events{/privacy}","received_events_url":"https://api.github.com/users/nodesource/received_events","type":"Organization","site_admin":false},"repo":{"id":22939348,"name":"ansible-nodejs-role","full_name":"nodesource/ansible-nodejs-role","owner":{"login":"nodesource","id":6759417,"avatar_url":"https://avatars.githubusercontent.com/u/6759417?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesource","html_url":"https://github.com/nodesource","followers_url":"https://api.github.com/users/nodesource/followers","following_url":"https://api.github.com/users/nodesource/following{/other_user}","gists_url":"https://api.github.com/users/nodesource/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesource/subscriptions","organizations_url":"https://api.github.com/users/nodesource/orgs","repos_url":"https://api.github.com/users/nodesource/repos","events_url":"https://api.github.com/users/nodesource/events{/privacy}","received_events_url":"https://api.github.com/users/nodesource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodesource/ansible-nodejs-role","description":"Ansible Role for Node.js Binary Install","fork":false,"url":"https://api.github.com/repos/nodesource/ansible-nodejs-role","forks_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/forks","keys_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/teams","hooks_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/hooks","issue_events_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/issues/events{/number}","events_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/events","assignees_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/assignees{/user}","branches_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/branches{/branch}","tags_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/tags","blobs_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/statuses/{sha}","languages_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/languages","stargazers_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/stargazers","contributors_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/contributors","subscribers_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/subscribers","subscription_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/subscription","commits_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/contents/{+path}","compare_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/merges","archive_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/downloads","issues_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/issues{/number}","pulls_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls{/number}","milestones_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/milestones{/number}","notifications_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/labels{/name}","releases_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/releases{/id}","deployments_url":"https://api.github.com/repos/nodesource/ansible-nodejs-role/deployments","created_at":"2014-08-14T03:01:45Z","updated_at":"2016-09-30T11:52:27Z","pushed_at":"2016-09-19T08:46:16Z","git_url":"git://github.com/nodesource/ansible-nodejs-role.git","ssh_url":"git@github.com:nodesource/ansible-nodejs-role.git","clone_url":"https://github.com/nodesource/ansible-nodejs-role.git","svn_url":"https://github.com/nodesource/ansible-nodejs-role","homepage":null,"size":38,"stargazers_count":101,"watchers_count":101,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":15,"forks":43,"open_issues":15,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/14"},"html":{"href":"https://github.com/nodesource/ansible-nodejs-role/pull/14"},"issue":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/issues/14"},"comments":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/nodesource/ansible-nodejs-role/statuses/7d80f625422b97d58c3a1273db64eaaf86d05c53"}}}}
{"actor":{"display_login":"kitsunde"}}