Add (very basic) postgresql.privs option
This commit is contained in:
parent
f97b24dbdd
commit
ee91be5330
2 changed files with 7 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ postgresql:
|
|||
allowed_hosts: {}
|
||||
dbs: {}
|
||||
users: {}
|
||||
privs: []
|
||||
|
||||
distro_pg_version_mapping:
|
||||
stretch: "9.6"
|
||||
|
|
|
|||
|
|
@ -45,6 +45,12 @@
|
|||
become: true
|
||||
with_dict: "{{ postgresql.dbs }}"
|
||||
|
||||
- name: add postgresql privs
|
||||
community.postgresql.postgresql_privs: "{{ item }}"
|
||||
become_user: postgres
|
||||
become: true
|
||||
loop: "{{ postgresql.privs }}"
|
||||
|
||||
- name: add vacuum cronjob
|
||||
cron:
|
||||
name: db maintenance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue