{"action":"created","comment":{"url":"https://api.github.com/repos/ANXS/postgresql/pulls/comments/25200429","id":25200429,"diff_hunk":"@@ -1,23 +1,22 @@\n # file: postgresql/tasks/configure.yml\n \n-- name: PostgreSQL | Make sure the postgres data directory exists\n-  file:\n-    path: \"{{postgresql_data_directory}}\"\n-    owner: \"{{postgresql_admin_user}}\"\n-    group: \"{{postgresql_admin_user}}\"\n-    mode: 0700\n+- name: PostgreSQL | Check if cluster exists\n+  stat: path=\"{{postgresql_data_directory}}\" get_md5=no\n+  sudo: yes\n+  sudo_user: postgres","path":"tasks/configure.yml","position":12,"original_position":12,"commit_id":"fd7c276eb11c6eaefdb9d014adce08cf0ddc6fa1","original_commit_id":"fd7c276eb11c6eaefdb9d014adce08cf0ddc6fa1","user":{"login":"farridav","id":2966253,"avatar_url":"https://avatars.githubusercontent.com/u/2966253?v=3","gravatar_id":"","url":"https://api.github.com/users/farridav","html_url":"https://github.com/farridav","followers_url":"https://api.github.com/users/farridav/followers","following_url":"https://api.github.com/users/farridav/following{/other_user}","gists_url":"https://api.github.com/users/farridav/gists{/gist_id}","starred_url":"https://api.github.com/users/farridav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farridav/subscriptions","organizations_url":"https://api.github.com/users/farridav/orgs","repos_url":"https://api.github.com/users/farridav/repos","events_url":"https://api.github.com/users/farridav/events{/privacy}","received_events_url":"https://api.github.com/users/farridav/received_events","type":"User","site_admin":false},"body":"perhaps this should be `{{postgresql_admin_user}}`?","created_at":"2015-02-23T20:48:42Z","updated_at":"2015-02-23T20:48:42Z","html_url":"https://github.com/ANXS/postgresql/pull/11#discussion_r25200429","pull_request_url":"https://api.github.com/repos/ANXS/postgresql/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/ANXS/postgresql/pulls/comments/25200429"},"html":{"href":"https://github.com/ANXS/postgresql/pull/11#discussion_r25200429"},"pull_request":{"href":"https://api.github.com/repos/ANXS/postgresql/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/ANXS/postgresql/pulls/11","id":15479333,"html_url":"https://github.com/ANXS/postgresql/pull/11","diff_url":"https://github.com/ANXS/postgresql/pull/11.diff","patch_url":"https://github.com/ANXS/postgresql/pull/11.patch","issue_url":"https://api.github.com/repos/ANXS/postgresql/issues/11","number":11,"state":"open","locked":false,"title":"A few fixes","user":{"login":"regolith","id":599063,"avatar_url":"https://avatars.githubusercontent.com/u/599063?v=3","gravatar_id":"","url":"https://api.github.com/users/regolith","html_url":"https://github.com/regolith","followers_url":"https://api.github.com/users/regolith/followers","following_url":"https://api.github.com/users/regolith/following{/other_user}","gists_url":"https://api.github.com/users/regolith/gists{/gist_id}","starred_url":"https://api.github.com/users/regolith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regolith/subscriptions","organizations_url":"https://api.github.com/users/regolith/orgs","repos_url":"https://api.github.com/users/regolith/repos","events_url":"https://api.github.com/users/regolith/events{/privacy}","received_events_url":"https://api.github.com/users/regolith/received_events","type":"User","site_admin":false},"body":"Mostly fixing some pain I ran into with doing fresh installs using a cluster name besides \"main\" (cluster did not yet exist and couldn't be reset) and with using \"peer\" as my default auth method.\r\n\r\nI can split this into multiple PRs if you want.","created_at":"2014-05-05T03:53:28Z","updated_at":"2015-02-23T20:48:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"414fa16c3b583a3e6a682c5278cca11ac051d017","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ANXS/postgresql/pulls/11/commits","review_comments_url":"https://api.github.com/repos/ANXS/postgresql/pulls/11/comments","review_comment_url":"https://api.github.com/repos/ANXS/postgresql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ANXS/postgresql/issues/11/comments","statuses_url":"https://api.github.com/repos/ANXS/postgresql/statuses/fd7c276eb11c6eaefdb9d014adce08cf0ddc6fa1","head":{"label":"regolith:master","ref":"master","sha":"fd7c276eb11c6eaefdb9d014adce08cf0ddc6fa1","user":{"login":"regolith","id":599063,"avatar_url":"https://avatars.githubusercontent.com/u/599063?v=3","gravatar_id":"","url":"https://api.github.com/users/regolith","html_url":"https://github.com/regolith","followers_url":"https://api.github.com/users/regolith/followers","following_url":"https://api.github.com/users/regolith/following{/other_user}","gists_url":"https://api.github.com/users/regolith/gists{/gist_id}","starred_url":"https://api.github.com/users/regolith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regolith/subscriptions","organizations_url":"https://api.github.com/users/regolith/orgs","repos_url":"https://api.github.com/users/regolith/repos","events_url":"https://api.github.com/users/regolith/events{/privacy}","received_events_url":"https://api.github.com/users/regolith/received_events","type":"User","site_admin":false},"repo":{"id":19442580,"name":"postgresql","full_name":"regolith/postgresql","owner":{"login":"regolith","id":599063,"avatar_url":"https://avatars.githubusercontent.com/u/599063?v=3","gravatar_id":"","url":"https://api.github.com/users/regolith","html_url":"https://github.com/regolith","followers_url":"https://api.github.com/users/regolith/followers","following_url":"https://api.github.com/users/regolith/following{/other_user}","gists_url":"https://api.github.com/users/regolith/gists{/gist_id}","starred_url":"https://api.github.com/users/regolith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regolith/subscriptions","organizations_url":"https://api.github.com/users/regolith/orgs","repos_url":"https://api.github.com/users/regolith/repos","events_url":"https://api.github.com/users/regolith/events{/privacy}","received_events_url":"https://api.github.com/users/regolith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/regolith/postgresql","description":"Ansible role for PostgreSQL","fork":true,"url":"https://api.github.com/repos/regolith/postgresql","forks_url":"https://api.github.com/repos/regolith/postgresql/forks","keys_url":"https://api.github.com/repos/regolith/postgresql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/regolith/postgresql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/regolith/postgresql/teams","hooks_url":"https://api.github.com/repos/regolith/postgresql/hooks","issue_events_url":"https://api.github.com/repos/regolith/postgresql/issues/events{/number}","events_url":"https://api.github.com/repos/regolith/postgresql/events","assignees_url":"https://api.github.com/repos/regolith/postgresql/assignees{/user}","branches_url":"https://api.github.com/repos/regolith/postgresql/branches{/branch}","tags_url":"https://api.github.com/repos/regolith/postgresql/tags","blobs_url":"https://api.github.com/repos/regolith/postgresql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/regolith/postgresql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/regolith/postgresql/git/refs{/sha}","trees_url":"https://api.github.com/repos/regolith/postgresql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/regolith/postgresql/statuses/{sha}","languages_url":"https://api.github.com/repos/regolith/postgresql/languages","stargazers_url":"https://api.github.com/repos/regolith/postgresql/stargazers","contributors_url":"https://api.github.com/repos/regolith/postgresql/contributors","subscribers_url":"https://api.github.com/repos/regolith/postgresql/subscribers","subscription_url":"https://api.github.com/repos/regolith/postgresql/subscription","commits_url":"https://api.github.com/repos/regolith/postgresql/commits{/sha}","git_commits_url":"https://api.github.com/repos/regolith/postgresql/git/commits{/sha}","comments_url":"https://api.github.com/repos/regolith/postgresql/comments{/number}","issue_comment_url":"https://api.github.com/repos/regolith/postgresql/issues/comments{/number}","contents_url":"https://api.github.com/repos/regolith/postgresql/contents/{+path}","compare_url":"https://api.github.com/repos/regolith/postgresql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/regolith/postgresql/merges","archive_url":"https://api.github.com/repos/regolith/postgresql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/regolith/postgresql/downloads","issues_url":"https://api.github.com/repos/regolith/postgresql/issues{/number}","pulls_url":"https://api.github.com/repos/regolith/postgresql/pulls{/number}","milestones_url":"https://api.github.com/repos/regolith/postgresql/milestones{/number}","notifications_url":"https://api.github.com/repos/regolith/postgresql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/regolith/postgresql/labels{/name}","releases_url":"https://api.github.com/repos/regolith/postgresql/releases{/id}","created_at":"2014-05-05T03:20:03Z","updated_at":"2014-05-05T03:53:28Z","pushed_at":"2014-05-05T03:41:44Z","git_url":"git://github.com/regolith/postgresql.git","ssh_url":"git@github.com:regolith/postgresql.git","clone_url":"https://github.com/regolith/postgresql.git","svn_url":"https://github.com/regolith/postgresql","homepage":null,"size":159,"stargazers_count":0,"watchers_count":0,"language":null,"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":"ANXS:master","ref":"master","sha":"48b660d4591eaf1993ed2644c8478bfab4b522c1","user":{"login":"ANXS","id":6914842,"avatar_url":"https://avatars.githubusercontent.com/u/6914842?v=3","gravatar_id":"","url":"https://api.github.com/users/ANXS","html_url":"https://github.com/ANXS","followers_url":"https://api.github.com/users/ANXS/followers","following_url":"https://api.github.com/users/ANXS/following{/other_user}","gists_url":"https://api.github.com/users/ANXS/gists{/gist_id}","starred_url":"https://api.github.com/users/ANXS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ANXS/subscriptions","organizations_url":"https://api.github.com/users/ANXS/orgs","repos_url":"https://api.github.com/users/ANXS/repos","events_url":"https://api.github.com/users/ANXS/events{/privacy}","received_events_url":"https://api.github.com/users/ANXS/received_events","type":"Organization","site_admin":false},"repo":{"id":17628006,"name":"postgresql","full_name":"ANXS/postgresql","owner":{"login":"ANXS","id":6914842,"avatar_url":"https://avatars.githubusercontent.com/u/6914842?v=3","gravatar_id":"","url":"https://api.github.com/users/ANXS","html_url":"https://github.com/ANXS","followers_url":"https://api.github.com/users/ANXS/followers","following_url":"https://api.github.com/users/ANXS/following{/other_user}","gists_url":"https://api.github.com/users/ANXS/gists{/gist_id}","starred_url":"https://api.github.com/users/ANXS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ANXS/subscriptions","organizations_url":"https://api.github.com/users/ANXS/orgs","repos_url":"https://api.github.com/users/ANXS/repos","events_url":"https://api.github.com/users/ANXS/events{/privacy}","received_events_url":"https://api.github.com/users/ANXS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ANXS/postgresql","description":"Ansible role for PostgreSQL","fork":false,"url":"https://api.github.com/repos/ANXS/postgresql","forks_url":"https://api.github.com/repos/ANXS/postgresql/forks","keys_url":"https://api.github.com/repos/ANXS/postgresql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ANXS/postgresql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ANXS/postgresql/teams","hooks_url":"https://api.github.com/repos/ANXS/postgresql/hooks","issue_events_url":"https://api.github.com/repos/ANXS/postgresql/issues/events{/number}","events_url":"https://api.github.com/repos/ANXS/postgresql/events","assignees_url":"https://api.github.com/repos/ANXS/postgresql/assignees{/user}","branches_url":"https://api.github.com/repos/ANXS/postgresql/branches{/branch}","tags_url":"https://api.github.com/repos/ANXS/postgresql/tags","blobs_url":"https://api.github.com/repos/ANXS/postgresql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ANXS/postgresql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ANXS/postgresql/git/refs{/sha}","trees_url":"https://api.github.com/repos/ANXS/postgresql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ANXS/postgresql/statuses/{sha}","languages_url":"https://api.github.com/repos/ANXS/postgresql/languages","stargazers_url":"https://api.github.com/repos/ANXS/postgresql/stargazers","contributors_url":"https://api.github.com/repos/ANXS/postgresql/contributors","subscribers_url":"https://api.github.com/repos/ANXS/postgresql/subscribers","subscription_url":"https://api.github.com/repos/ANXS/postgresql/subscription","commits_url":"https://api.github.com/repos/ANXS/postgresql/commits{/sha}","git_commits_url":"https://api.github.com/repos/ANXS/postgresql/git/commits{/sha}","comments_url":"https://api.github.com/repos/ANXS/postgresql/comments{/number}","issue_comment_url":"https://api.github.com/repos/ANXS/postgresql/issues/comments{/number}","contents_url":"https://api.github.com/repos/ANXS/postgresql/contents/{+path}","compare_url":"https://api.github.com/repos/ANXS/postgresql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ANXS/postgresql/merges","archive_url":"https://api.github.com/repos/ANXS/postgresql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ANXS/postgresql/downloads","issues_url":"https://api.github.com/repos/ANXS/postgresql/issues{/number}","pulls_url":"https://api.github.com/repos/ANXS/postgresql/pulls{/number}","milestones_url":"https://api.github.com/repos/ANXS/postgresql/milestones{/number}","notifications_url":"https://api.github.com/repos/ANXS/postgresql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ANXS/postgresql/labels{/name}","releases_url":"https://api.github.com/repos/ANXS/postgresql/releases{/id}","created_at":"2014-03-11T11:27:43Z","updated_at":"2015-02-20T22:25:51Z","pushed_at":"2015-02-06T10:03:27Z","git_url":"git://github.com/ANXS/postgresql.git","ssh_url":"git@github.com:ANXS/postgresql.git","clone_url":"https://github.com/ANXS/postgresql.git","svn_url":"https://github.com/ANXS/postgresql","homepage":null,"size":740,"stargazers_count":92,"watchers_count":92,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":20,"forks":68,"open_issues":20,"watchers":92,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ANXS/postgresql/pulls/11"},"html":{"href":"https://github.com/ANXS/postgresql/pull/11"},"issue":{"href":"https://api.github.com/repos/ANXS/postgresql/issues/11"},"comments":{"href":"https://api.github.com/repos/ANXS/postgresql/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/ANXS/postgresql/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/ANXS/postgresql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ANXS/postgresql/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/ANXS/postgresql/statuses/fd7c276eb11c6eaefdb9d014adce08cf0ddc6fa1"}}}}