diff --git a/host_vars/bdd-ovh.adm.auro.re b/host_vars/bdd-ovh.adm.auro.re.yml similarity index 100% rename from host_vars/bdd-ovh.adm.auro.re rename to host_vars/bdd-ovh.adm.auro.re.yml diff --git a/roles/postgresql_server/tasks/main.yml b/roles/postgresql_server/tasks/main.yml index f4f3909..6be936f 100644 --- a/roles/postgresql_server/tasks/main.yml +++ b/roles/postgresql_server/tasks/main.yml @@ -17,7 +17,6 @@ owner: postgres group: postgres mode: 0755 - recurse: true - name: Ensure configuration directory exists file: @@ -45,6 +44,10 @@ become_user: postgres postgresql_db: name: "{{ item }}" + encoding: UTF-8 + lc_collate: en_US.UTF-8 + lc_ctype: en_US.UTF-8 + template: template0 loop: "{{ postgresql_databases }}" - name: Create users @@ -55,5 +58,6 @@ name: "{{ item.name }}" password: "{{ item.password }}" priv: "{{ item.priv }}" + no_log: true loop: "{{ postgresql_users }}" ...