fix issue for migration

This commit is contained in:
vincent 2020-09-08 23:32:56 +02:00
parent 3533dd23b7
commit ddcb35ec31

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 }}"
command: "{{ postgresql_bin_path }}/initdb -D {{ postgresql_data_dir }} -E UTF8 --locale=fr_FR.UTF-8"
when: not pgdata_dir_version.stat.exists
become: true
become_user: "{{ postgresql_user }}"