{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/forklift/pulls/comments/145073292","pull_request_review_id":69816971,"id":145073292,"diff_hunk":"@@ -0,0 +1,54 @@\n+---\n+- name: 'Install postgresql-server'\n+  become: true\n+  package:\n+    name:\n+      - 'postgresql'\n+      - 'postgresql-server'\n+      - 'python-psycopg2' # required by postgresql_* modules\n+    state: 'latest'\n+\n+- name: 'Initialize postgresql'\n+  become: true\n+  command: 'postgresql-setup initdb'\n+  register: command_result\n+  failed_when: command_result.rc != 0 and 'Data directory is not empty!' not in command_result.stdout\n+\n+- name: 'Enable postgresql on startup'\n+  become: true\n+  systemd:","path":"roles/postgres/tasks/main.yml","position":19,"original_position":19,"commit_id":"4b6d5b0b426b6bf619be71786619907cb92929b3","original_commit_id":"4b6d5b0b426b6bf619be71786619907cb92929b3","user":{"login":"evgeni","id":94284,"avatar_url":"https://avatars3.githubusercontent.com/u/94284?v=4","gravatar_id":"","url":"https://api.github.com/users/evgeni","html_url":"https://github.com/evgeni","followers_url":"https://api.github.com/users/evgeni/followers","following_url":"https://api.github.com/users/evgeni/following{/other_user}","gists_url":"https://api.github.com/users/evgeni/gists{/gist_id}","starred_url":"https://api.github.com/users/evgeni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgeni/subscriptions","organizations_url":"https://api.github.com/users/evgeni/orgs","repos_url":"https://api.github.com/users/evgeni/repos","events_url":"https://api.github.com/users/evgeni/events{/privacy}","received_events_url":"https://api.github.com/users/evgeni/received_events","type":"User","site_admin":false},"body":"Any reason not to use the more generic `service` module here?","created_at":"2017-10-17T09:21:46Z","updated_at":"2017-10-17T09:24:13Z","html_url":"https://github.com/theforeman/forklift/pull/540#discussion_r145073292","pull_request_url":"https://api.github.com/repos/theforeman/forklift/pulls/540","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/theforeman/forklift/pulls/comments/145073292"},"html":{"href":"https://github.com/theforeman/forklift/pull/540#discussion_r145073292"},"pull_request":{"href":"https://api.github.com/repos/theforeman/forklift/pulls/540"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/forklift/pulls/540","id":146284721,"html_url":"https://github.com/theforeman/forklift/pull/540","diff_url":"https://github.com/theforeman/forklift/pull/540.diff","patch_url":"https://github.com/theforeman/forklift/pull/540.patch","issue_url":"https://api.github.com/repos/theforeman/forklift/issues/540","number":540,"state":"open","locked":false,"title":"[RFC] Add postgres playbook","user":{"login":"akofink","id":761923,"avatar_url":"https://avatars2.githubusercontent.com/u/761923?v=4","gravatar_id":"","url":"https://api.github.com/users/akofink","html_url":"https://github.com/akofink","followers_url":"https://api.github.com/users/akofink/followers","following_url":"https://api.github.com/users/akofink/following{/other_user}","gists_url":"https://api.github.com/users/akofink/gists{/gist_id}","starred_url":"https://api.github.com/users/akofink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akofink/subscriptions","organizations_url":"https://api.github.com/users/akofink/orgs","repos_url":"https://api.github.com/users/akofink/repos","events_url":"https://api.github.com/users/akofink/events{/privacy}","received_events_url":"https://api.github.com/users/akofink/received_events","type":"User","site_admin":false},"body":"In the interest of disconnected DB, I present: a DB box.","created_at":"2017-10-12T18:44:16Z","updated_at":"2017-10-17T09:24:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c8eaf7be6efa94b60b0b2fe72ff2f2500848d4f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/forklift/pulls/540/commits","review_comments_url":"https://api.github.com/repos/theforeman/forklift/pulls/540/comments","review_comment_url":"https://api.github.com/repos/theforeman/forklift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/forklift/issues/540/comments","statuses_url":"https://api.github.com/repos/theforeman/forklift/statuses/4b6d5b0b426b6bf619be71786619907cb92929b3","head":{"label":"akofink:remote-db","ref":"remote-db","sha":"4b6d5b0b426b6bf619be71786619907cb92929b3","user":{"login":"akofink","id":761923,"avatar_url":"https://avatars2.githubusercontent.com/u/761923?v=4","gravatar_id":"","url":"https://api.github.com/users/akofink","html_url":"https://github.com/akofink","followers_url":"https://api.github.com/users/akofink/followers","following_url":"https://api.github.com/users/akofink/following{/other_user}","gists_url":"https://api.github.com/users/akofink/gists{/gist_id}","starred_url":"https://api.github.com/users/akofink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akofink/subscriptions","organizations_url":"https://api.github.com/users/akofink/orgs","repos_url":"https://api.github.com/users/akofink/repos","events_url":"https://api.github.com/users/akofink/events{/privacy}","received_events_url":"https://api.github.com/users/akofink/received_events","type":"User","site_admin":false},"repo":{"id":54578126,"name":"forklift","full_name":"akofink/forklift","owner":{"login":"akofink","id":761923,"avatar_url":"https://avatars2.githubusercontent.com/u/761923?v=4","gravatar_id":"","url":"https://api.github.com/users/akofink","html_url":"https://github.com/akofink","followers_url":"https://api.github.com/users/akofink/followers","following_url":"https://api.github.com/users/akofink/following{/other_user}","gists_url":"https://api.github.com/users/akofink/gists{/gist_id}","starred_url":"https://api.github.com/users/akofink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akofink/subscriptions","organizations_url":"https://api.github.com/users/akofink/orgs","repos_url":"https://api.github.com/users/akofink/repos","events_url":"https://api.github.com/users/akofink/events{/privacy}","received_events_url":"https://api.github.com/users/akofink/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akofink/forklift","description":"Helpful deployment scripts for Katello","fork":true,"url":"https://api.github.com/repos/akofink/forklift","forks_url":"https://api.github.com/repos/akofink/forklift/forks","keys_url":"https://api.github.com/repos/akofink/forklift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akofink/forklift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akofink/forklift/teams","hooks_url":"https://api.github.com/repos/akofink/forklift/hooks","issue_events_url":"https://api.github.com/repos/akofink/forklift/issues/events{/number}","events_url":"https://api.github.com/repos/akofink/forklift/events","assignees_url":"https://api.github.com/repos/akofink/forklift/assignees{/user}","branches_url":"https://api.github.com/repos/akofink/forklift/branches{/branch}","tags_url":"https://api.github.com/repos/akofink/forklift/tags","blobs_url":"https://api.github.com/repos/akofink/forklift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akofink/forklift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akofink/forklift/git/refs{/sha}","trees_url":"https://api.github.com/repos/akofink/forklift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akofink/forklift/statuses/{sha}","languages_url":"https://api.github.com/repos/akofink/forklift/languages","stargazers_url":"https://api.github.com/repos/akofink/forklift/stargazers","contributors_url":"https://api.github.com/repos/akofink/forklift/contributors","subscribers_url":"https://api.github.com/repos/akofink/forklift/subscribers","subscription_url":"https://api.github.com/repos/akofink/forklift/subscription","commits_url":"https://api.github.com/repos/akofink/forklift/commits{/sha}","git_commits_url":"https://api.github.com/repos/akofink/forklift/git/commits{/sha}","comments_url":"https://api.github.com/repos/akofink/forklift/comments{/number}","issue_comment_url":"https://api.github.com/repos/akofink/forklift/issues/comments{/number}","contents_url":"https://api.github.com/repos/akofink/forklift/contents/{+path}","compare_url":"https://api.github.com/repos/akofink/forklift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akofink/forklift/merges","archive_url":"https://api.github.com/repos/akofink/forklift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akofink/forklift/downloads","issues_url":"https://api.github.com/repos/akofink/forklift/issues{/number}","pulls_url":"https://api.github.com/repos/akofink/forklift/pulls{/number}","milestones_url":"https://api.github.com/repos/akofink/forklift/milestones{/number}","notifications_url":"https://api.github.com/repos/akofink/forklift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akofink/forklift/labels{/name}","releases_url":"https://api.github.com/repos/akofink/forklift/releases{/id}","deployments_url":"https://api.github.com/repos/akofink/forklift/deployments","created_at":"2016-03-23T17:03:23Z","updated_at":"2017-02-16T16:13:49Z","pushed_at":"2017-10-13T11:47:23Z","git_url":"git://github.com/akofink/forklift.git","ssh_url":"git@github.com:akofink/forklift.git","clone_url":"https://github.com/akofink/forklift.git","svn_url":"https://github.com/akofink/forklift","homepage":null,"size":1124,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"theforeman:master","ref":"master","sha":"326b4e8e0fafab37a0dc692be111d71ceaded7da","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":16148652,"name":"forklift","full_name":"theforeman/forklift","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/forklift","description":"Helpful deployment scripts for Foreman and Katello","fork":false,"url":"https://api.github.com/repos/theforeman/forklift","forks_url":"https://api.github.com/repos/theforeman/forklift/forks","keys_url":"https://api.github.com/repos/theforeman/forklift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/forklift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/forklift/teams","hooks_url":"https://api.github.com/repos/theforeman/forklift/hooks","issue_events_url":"https://api.github.com/repos/theforeman/forklift/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/forklift/events","assignees_url":"https://api.github.com/repos/theforeman/forklift/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/forklift/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/forklift/tags","blobs_url":"https://api.github.com/repos/theforeman/forklift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/forklift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/forklift/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/forklift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/forklift/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/forklift/languages","stargazers_url":"https://api.github.com/repos/theforeman/forklift/stargazers","contributors_url":"https://api.github.com/repos/theforeman/forklift/contributors","subscribers_url":"https://api.github.com/repos/theforeman/forklift/subscribers","subscription_url":"https://api.github.com/repos/theforeman/forklift/subscription","commits_url":"https://api.github.com/repos/theforeman/forklift/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/forklift/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/forklift/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/forklift/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/forklift/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/forklift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/forklift/merges","archive_url":"https://api.github.com/repos/theforeman/forklift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/forklift/downloads","issues_url":"https://api.github.com/repos/theforeman/forklift/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/forklift/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/forklift/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/forklift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/forklift/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/forklift/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/forklift/deployments","created_at":"2014-01-22T18:44:49Z","updated_at":"2017-10-15T11:00:17Z","pushed_at":"2017-10-17T09:17:54Z","git_url":"git://github.com/theforeman/forklift.git","ssh_url":"git@github.com:theforeman/forklift.git","clone_url":"https://github.com/theforeman/forklift.git","svn_url":"https://github.com/theforeman/forklift","homepage":"","size":1115,"stargazers_count":57,"watchers_count":57,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":43,"forks":80,"open_issues":43,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/forklift/pulls/540"},"html":{"href":"https://github.com/theforeman/forklift/pull/540"},"issue":{"href":"https://api.github.com/repos/theforeman/forklift/issues/540"},"comments":{"href":"https://api.github.com/repos/theforeman/forklift/issues/540/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/forklift/pulls/540/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/forklift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/forklift/pulls/540/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/forklift/statuses/4b6d5b0b426b6bf619be71786619907cb92929b3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"evgeni"}}