Ansiblesation des VMs de BDD #32

Merged
jeltz merged 28 commits from service-bdd-ovh into master 2021-03-10 20:18:27 +01:00
Showing only changes of commit 06b54d5f89 - Show all commits

View file

@ -57,7 +57,17 @@
db: "{{ item.database }}" db: "{{ item.database }}"
name: "{{ item.name }}" name: "{{ item.name }}"
password: "{{ item.password }}" password: "{{ item.password }}"
priv: "{{ item.priv }}"
no_log: true no_log: true
loop: "{{ postgresql_users }}" 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 }}"
... ...