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
|
owner: postgres
|
||||||
group: postgres
|
group: postgres
|
||||||
mode: 0755
|
mode: 0755
|
||||||
recurse: true
|
|
||||||
|
|
||||||
- name: Ensure configuration directory exists
|
- name: Ensure configuration directory exists
|
||||||
file:
|
file:
|
||||||
|
@ -45,6 +44,10 @@
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
postgresql_db:
|
postgresql_db:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
encoding: UTF-8
|
||||||
|
lc_collate: en_US.UTF-8
|
||||||
|
lc_ctype: en_US.UTF-8
|
||||||
|
template: template0
|
||||||
loop: "{{ postgresql_databases }}"
|
loop: "{{ postgresql_databases }}"
|
||||||
|
|
||||||
- name: Create users
|
- name: Create users
|
||||||
|
@ -55,5 +58,6 @@
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
password: "{{ item.password }}"
|
password: "{{ item.password }}"
|
||||||
priv: "{{ item.priv }}"
|
priv: "{{ item.priv }}"
|
||||||
|
no_log: true
|
||||||
loop: "{{ postgresql_users }}"
|
loop: "{{ postgresql_users }}"
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue