update initdb command
This commit is contained in:
parent
8ecbc21eac
commit
2d1ae51136
@ -20,7 +20,7 @@
|
|||||||
register: pgdata_dir_version
|
register: pgdata_dir_version
|
||||||
|
|
||||||
- name: Ensure PostgreSQL database is initialized.
|
- name: Ensure PostgreSQL database is initialized.
|
||||||
command: "{{ postgresql_bin_path }}/initdb -D {{ postgresql_data_dir }} -E UTF8 --locale=fr_FR.UTF-8"
|
command: "{{ postgresql_bin_path }}/initdb -D {{ postgresql_data_dir }} --locale=C.UTF-8 --encoding=UTF8 --data-checksums"
|
||||||
when: not pgdata_dir_version.stat.exists
|
when: not pgdata_dir_version.stat.exists
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ postgresql_user }}"
|
become_user: "{{ postgresql_user }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user