update initdb command

This commit is contained in:
vincent 2024-01-02 20:54:52 +01:00
parent 8ecbc21eac
commit 2d1ae51136

View File

@ -20,7 +20,7 @@
register: pgdata_dir_version
- 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
become: true
become_user: "{{ postgresql_user }}"