M roles/postgres/tasks/main.yml => roles/postgres/tasks/main.yml +1 -1
@@ 22,7 22,7 @@
become: true
become_user: postgres
ansible.builtin.command:
- cmd: initdb --locale en_US.UTF-8 -E UTF-8 -D '/var/lib/postgres/data'
+ cmd: initdb --locale C.UTF-8 -E UTF-8 -D '/var/lib/postgres/data'
chdir: /var/lib/postgres
creates: /var/lib/postgres/data/postgresql.conf
M roles/postgres/templates/postgresql.conf.j2 => roles/postgres/templates/postgresql.conf.j2 +4 -4
@@ 707,11 707,11 @@ timezone = 'UTC'
# encoding
# These settings are initialized by initdb, but they can be changed.
-lc_messages = 'en_US.UTF-8' # locale for system error message
+lc_messages = 'C.UTF-8' # locale for system error message
# strings
-lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
-lc_numeric = 'en_US.UTF-8' # locale for number formatting
-lc_time = 'en_US.UTF-8' # locale for time formatting
+lc_monetary = 'C.UTF-8' # locale for monetary formatting
+lc_numeric = 'C.UTF-8' # locale for number formatting
+lc_time = 'C.UTF-8' # locale for time formatting
# default configuration for text search
default_text_search_config = 'pg_catalog.english'