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 5 additions and 1 deletions
Showing only changes of commit 40eadf802c - Show all commits

View file

@ -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 }}"
...