Initialize database as postgres

This commit is contained in:
Sam A. 2023-12-05 22:08:55 +01:00
parent 259a396319
commit ab0b7835a4
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -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: