Add template and no_log for postgresql_user
This commit is contained in:
parent
8e855d7009
commit
40eadf802c
2 changed files with 5 additions and 1 deletions
|
@ -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 }}"
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue