Fix postgresql_server initdb
Empty /var/lib/pgsql/ directory is created during postgresql-server package installation. We need another file to detect whether DB has already been initialized.
This commit is contained in:
parent
5d5187d4ce
commit
928cc3f0de
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
- name: Initialize postgres if necessary
|
- name: Initialize postgres if necessary
|
||||||
command: /usr/bin/postgresql-setup initdb
|
command: /usr/bin/postgresql-setup initdb
|
||||||
creates=/var/lib/pgsql/data
|
creates=/var/lib/pgsql/data/postgresql.conf
|
||||||
notify:
|
notify:
|
||||||
- restart postgresql
|
- restart postgresql
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue