mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 14:02:12 +08:00
retrace: make sure posgresql data dir is available
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
bcb8e2995a
commit
103e5fd3f0
@@ -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
|
||||
lineinfile:
|
||||
path: /var/lib/pgsql/data/postgresql.conf
|
||||
|
||||
Reference in New Issue
Block a user