retrace: make sure posgresql data dir is available
This commit is contained in:
parent
bcb8e2995a
commit
103e5fd3f0
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
||||||
---
|
---
|
||||||
|
- name: Ensure PostgreSQL database is initialized.
|
||||||
|
command: "initdb --no-locale -D /var/lib/pgsql/data"
|
||||||
|
become: true
|
||||||
|
become_user: "postgres"
|
||||||
|
args:
|
||||||
|
creates: "/var/lib/pgsql/data/PG_VERSION"
|
||||||
|
|
||||||
- name: set max_connections for PostgreSQL
|
- name: set max_connections for PostgreSQL
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /var/lib/pgsql/data/postgresql.conf
|
path: /var/lib/pgsql/data/postgresql.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue