ansible-postgresql/tasks/init_postgres.yml
2021-07-13 18:22:31 +02:00

13 lines
374 B
YAML

- name: postgres | init_postgres | init database
ansible.builtin.command: /usr/pgsql-{{postgres_version}}/bin/postgresql-{{postgres_version}}-setup initdb
register: postgresql_database_init
args:
creates: /var/lib/pgsql/13/initdb.log
notify:
- start postgreql
- name: postgres | init_postgres | show posgres init
debug:
var: postgresql_database_init