{"action":"created","comment":{"url":"https://api.github.com/repos/edx/configuration/pulls/comments/50442290","id":50442290,"diff_hunk":"@@ -90,12 +94,65 @@\n     job: /edx/bin/log-mongo-serverStatus.sh >> {{ mongo_log_dir }}/serverStatus.log 2>&1\n   become: yes\n   when: MONGO_LOG_SERVERSTATUS\n+  tags:\n+    - \"install\"\n+    - \"install:configuration\"\n \n-#### DANGER WILL ROBINSON ####\n-- name: stop mongod service\n-  service:\n-    name: mongod\n-    state: stopped\n+# This will error when run on a new replica set, so we ignore_errors\n+# and connect anonymously next.\n+- name: determine if there is a replica set already\n+  mongodb_rs_status:\n+    host: \"{{ ansible_default_ipv4['address'] }}\"\n+    username: \"{{ MONGO_ADMIN_USER }}\"\n+    password: \"{{ MONGO_ADMIN_PASSWORD }}\"\n+  run_once: true","path":"playbooks/roles/mongo_3_0/tasks/main.yml","position":93,"original_position":93,"commit_id":"20fe038beef230bef61d37cfdf2b1883098cafaf","original_commit_id":"20fe038beef230bef61d37cfdf2b1883098cafaf","user":{"login":"jibsheet","id":57604,"avatar_url":"https://avatars.githubusercontent.com/u/57604?v=3","gravatar_id":"","url":"https://api.github.com/users/jibsheet","html_url":"https://github.com/jibsheet","followers_url":"https://api.github.com/users/jibsheet/followers","following_url":"https://api.github.com/users/jibsheet/following{/other_user}","gists_url":"https://api.github.com/users/jibsheet/gists{/gist_id}","starred_url":"https://api.github.com/users/jibsheet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibsheet/subscriptions","organizations_url":"https://api.github.com/users/jibsheet/orgs","repos_url":"https://api.github.com/users/jibsheet/repos","events_url":"https://api.github.com/users/jibsheet/events{/privacy}","received_events_url":"https://api.github.com/users/jibsheet/received_events","type":"User","site_admin":false},"body":"My plan was to update our \"adding a new member\" directions to state not to put your new host first in the inventory.  Ansible takes inventory[0] when you say run_once (in the docs and in practice) so testing with the new host last in the inventory was successful.\r\n\r\nAdditionally, if the new host tried to initiate a new replica set on itself, it would fail to join the existing replica set for several reasons.  We need to let it not try to create users or the replica set, and having it not search for the replica set seemed simplest.","created_at":"2016-01-21T18:35:05Z","updated_at":"2016-01-21T18:35:05Z","html_url":"https://github.com/edx/configuration/pull/2712#discussion_r50442290","pull_request_url":"https://api.github.com/repos/edx/configuration/pulls/2712","_links":{"self":{"href":"https://api.github.com/repos/edx/configuration/pulls/comments/50442290"},"html":{"href":"https://github.com/edx/configuration/pull/2712#discussion_r50442290"},"pull_request":{"href":"https://api.github.com/repos/edx/configuration/pulls/2712"}}},"pull_request":{"url":"https://api.github.com/repos/edx/configuration/pulls/2712","id":56497126,"html_url":"https://github.com/edx/configuration/pull/2712","diff_url":"https://github.com/edx/configuration/pull/2712.diff","patch_url":"https://github.com/edx/configuration/pull/2712.patch","issue_url":"https://api.github.com/repos/edx/configuration/issues/2712","number":2712,"state":"open","locked":false,"title":"Jibsheet/play reordering","user":{"login":"jibsheet","id":57604,"avatar_url":"https://avatars.githubusercontent.com/u/57604?v=3","gravatar_id":"","url":"https://api.github.com/users/jibsheet","html_url":"https://github.com/jibsheet","followers_url":"https://api.github.com/users/jibsheet/followers","following_url":"https://api.github.com/users/jibsheet/following{/other_user}","gists_url":"https://api.github.com/users/jibsheet/gists{/gist_id}","starred_url":"https://api.github.com/users/jibsheet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibsheet/subscriptions","organizations_url":"https://api.github.com/users/jibsheet/orgs","repos_url":"https://api.github.com/users/jibsheet/repos","events_url":"https://api.github.com/users/jibsheet/events{/privacy}","received_events_url":"https://api.github.com/users/jibsheet/received_events","type":"User","site_admin":false},"body":"This is my rewrite/reordering of the mongo_3_0 role.\r\n\r\nIt has been tested standing up a new cluster, reconfiguring an existing cluster, and adding a new member to a replica set where that new member needed the mongo installs.\r\nI've also added more tags than the original role had, although I'm not fully sold on all the choices there.\r\n\r\n@edx/devops ","created_at":"2016-01-19T17:19:26Z","updated_at":"2016-01-21T18:35:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b61485e5af2aef64dd87f38c9100f088cfd4092d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/configuration/pulls/2712/commits","review_comments_url":"https://api.github.com/repos/edx/configuration/pulls/2712/comments","review_comment_url":"https://api.github.com/repos/edx/configuration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/configuration/issues/2712/comments","statuses_url":"https://api.github.com/repos/edx/configuration/statuses/20fe038beef230bef61d37cfdf2b1883098cafaf","head":{"label":"edx:jibsheet/play-reordering","ref":"jibsheet/play-reordering","sha":"20fe038beef230bef61d37cfdf2b1883098cafaf","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}","created_at":"2013-04-16T17:23:42Z","updated_at":"2016-01-17T01:35:40Z","pushed_at":"2016-01-21T16:21:11Z","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":10411,"stargazers_count":479,"watchers_count":479,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":439,"mirror_url":null,"open_issues_count":110,"forks":439,"open_issues":110,"watchers":479,"default_branch":"master"}},"base":{"label":"edx:max/idempotent-mongo_3_0","ref":"max/idempotent-mongo_3_0","sha":"1130080553d51923b6b3f1f476052f551e517c38","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}","created_at":"2013-04-16T17:23:42Z","updated_at":"2016-01-17T01:35:40Z","pushed_at":"2016-01-21T16:21:11Z","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":10411,"stargazers_count":479,"watchers_count":479,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":439,"mirror_url":null,"open_issues_count":110,"forks":439,"open_issues":110,"watchers":479,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/configuration/pulls/2712"},"html":{"href":"https://github.com/edx/configuration/pull/2712"},"issue":{"href":"https://api.github.com/repos/edx/configuration/issues/2712"},"comments":{"href":"https://api.github.com/repos/edx/configuration/issues/2712/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/configuration/pulls/2712/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/configuration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/configuration/pulls/2712/commits"},"statuses":{"href":"https://api.github.com/repos/edx/configuration/statuses/20fe038beef230bef61d37cfdf2b1883098cafaf"}}}}