Add template and no_log for postgresql_user
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
jeltz 2021-03-10 13:58:40 +01:00
parent 8e855d7009
commit 40eadf802c
2 changed files with 5 additions and 1 deletions

View file

@ -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 }}"
...