15 lines
290 B
YAML
15 lines
290 B
YAML
|
- name: PostgreSQL initdb
|
||
|
command: sudo -u postgres initdb -D /var/lib/pgsql/data
|
||
|
args:
|
||
|
creates: /var/lib/pgsql/data/PG_VERSION
|
||
|
tags:
|
||
|
- init
|
||
|
|
||
|
- name: Systemctl start and enable PostgreSQL
|
||
|
service:
|
||
|
name: postgresql
|
||
|
state: started
|
||
|
enabled: true
|
||
|
tags:
|
||
|
- init
|