Initialize database as postgres
This commit is contained in:
parent
259a396319
commit
ab0b7835a4
|
@ -54,6 +54,8 @@
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: /usr/pgsql-{{ postgresql_version }}/bin/postgresql-{{ postgresql_version }}-setup initdb
|
cmd: /usr/pgsql-{{ postgresql_version }}/bin/postgresql-{{ postgresql_version }}-setup initdb
|
||||||
creates: "{{ postgresql_pgdata }}/base"
|
creates: "{{ postgresql_pgdata }}/base"
|
||||||
|
become: true
|
||||||
|
become_user: postgres
|
||||||
|
|
||||||
- name: Ensure PostgreSQL is enabled and running
|
- name: Ensure PostgreSQL is enabled and running
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
|
|
Loading…
Reference in a new issue