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
2 changed files with 18 additions and 0 deletions
Showing only changes of commit 9ef6202fdf - Show all commits

View file

@ -0,0 +1,4 @@
---
postgresql_db: []
postgresql_users: []
...

View file

@ -37,3 +37,17 @@
- postgresql.conf
notify:
- restart postgresql
- name: Create databases
postgresql_db:
name: "{{ item.name }}"
loop: "{{ postgresql_databases }}"
- name: Create users
postgresql_user:
db: "{{ item.database }}"
name: "{{ item.name }}"
password: "{{ item.password }}"
priv: "{{ item.priv }}"
loop: "{{ postgresql_users }}"
...