mirror of
https://gitea.0xace.cc/ansible-galaxy/postgresql.git
synced 2024-11-25 00:06:42 +00:00
fix initdb with custom user
This commit is contained in:
parent
8bfd98da72
commit
5180e29e2f
@ -46,7 +46,7 @@
|
||||
when: postgresql_wal_g_restore_from_backup
|
||||
|
||||
- name: PostgreSQL Initdb
|
||||
shell: "/usr/pgsql-{{ postgresql_major_version }}/bin/postgresql-{{ postgresql_major_version }}-setup initdb --username {{ postgresql_superuser_username }} --auth-host {{ postgresql_password_encryption_algorithm }}"
|
||||
shell: "PGSETUP_INITDB_OPTIONS='--username {{ postgresql_superuser_username }} --auth-host {{ postgresql_password_encryption_algorithm }}' /usr/pgsql-{{ postgresql_major_version }}/bin/postgresql-{{ postgresql_major_version }}-setup initdb"
|
||||
register: initdb
|
||||
changed_when: "'Data directory is not empty!' not in initdb.stdout"
|
||||
failed_when: false
|
||||
|
Loading…
Reference in New Issue
Block a user