Ansiblesation des VMs de BDD #32
1 changed files with 11 additions and 1 deletions
|
@ -57,7 +57,17 @@
|
|||
db: "{{ item.database }}"
|
||||
name: "{{ item.name }}"
|
||||
password: "{{ item.password }}"
|
||||
priv: "{{ item.priv }}"
|
||||
no_log: true
|
||||
loop: "{{ postgresql_users }}"
|
||||
|
||||
- name: Grant privileges to users
|
||||
become: true
|
||||
become_user: postgres
|
||||
postgresql_privs:
|
||||
db: postgres
|
||||
type: database
|
||||
role: "{{ item.name }}"
|
||||
privs: "{{ item.privs | join(',') }}"
|
||||
obj: "{{ item.database }}"
|
||||
loop: "{{ postgresql_users }}"
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue