{"action":"closed","issue":{"url":"https://api.github.com/repos/zenoamaro/ansible-postgresql/issues/5","repository_url":"https://api.github.com/repos/zenoamaro/ansible-postgresql","labels_url":"https://api.github.com/repos/zenoamaro/ansible-postgresql/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/zenoamaro/ansible-postgresql/issues/5/comments","events_url":"https://api.github.com/repos/zenoamaro/ansible-postgresql/issues/5/events","html_url":"https://github.com/zenoamaro/ansible-postgresql/issues/5","id":82371691,"number":5,"title":"is not a database cluster directory","user":{"login":"klemenkobetic","id":9315122,"avatar_url":"https://avatars.githubusercontent.com/u/9315122?v=3","gravatar_id":"","url":"https://api.github.com/users/klemenkobetic","html_url":"https://github.com/klemenkobetic","followers_url":"https://api.github.com/users/klemenkobetic/followers","following_url":"https://api.github.com/users/klemenkobetic/following{/other_user}","gists_url":"https://api.github.com/users/klemenkobetic/gists{/gist_id}","starred_url":"https://api.github.com/users/klemenkobetic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klemenkobetic/subscriptions","organizations_url":"https://api.github.com/users/klemenkobetic/orgs","repos_url":"https://api.github.com/users/klemenkobetic/repos","events_url":"https://api.github.com/users/klemenkobetic/events{/privacy}","received_events_url":"https://api.github.com/users/klemenkobetic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-29T10:32:45Z","updated_at":"2016-02-05T13:57:55Z","closed_at":"2016-02-05T13:57:55Z","body":"using what is currently on the repository with default box config fails with :\r\n\r\nNOTIFIED: [zenoamaro.postgresql | restart postgresql] ************************* \r\nfailed: [test] => {\"failed\": true}\r\nmsg:  * Stopping PostgreSQL 9.4 database server\r\n   ...done.\r\n * Starting PostgreSQL 9.4 database server\r\n * Error: could not exec /usr/lib/postgresql/9.4/bin/pg_ctl /usr/lib/postgresql/9.4/bin/pg_ctl start -D /var/lib/postgresql/9.4/main -l /var/log/postgresql/postgresql-9.4-main.log -s -o  -c config_file=\"/etc/postgresql/9.4/main/postgresql.conf\" : \r\n   ...fail!\r\nFATAL: all hosts have already failed -- aborting\r\n\r\nall default configuration from box.yml\r\n\r\nlater inspection shows :\r\n\r\npostgres@vagrant-ubuntu-trusty-64:~$ /usr/lib/postgresql/9.4/bin/pg_ctl start -D /var/lib/postgresql/9.4/main -c\r\npg_ctl: directory \"/var/lib/postgresql/9.4/main\" is not a database cluster directory\r\n\r\nso by running \"initdb -D /var/lib/postgresql/9.4/main\" it works!\r\n\r\nalso, /var/lib/postgresql/9.4/main should only have 700 rights (if google is correct)"}}