add default user custom name support

This commit is contained in:
ace
2023-06-13 21:29:53 +03:00
parent d0cf0cc32f
commit a20385be58
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
when: postgresql_wal_g_restore
- name: PostgreSQL Initdb
shell: "/usr/pgsql-{{ postgresql_major_version }}/bin/postgresql-{{ postgresql_major_version }}-setup initdb"
shell: "/usr/pgsql-{{ postgresql_major_version }}/bin/postgresql-{{ postgresql_major_version }}-setup initdb --username {{ postgresql_superuser_username }} --auth-host {{ postgresql_password_encryption_algorithm }}"
register: initdb
changed_when: "'Data directory is not empty!' not in initdb.stdout"
failed_when: false