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: {}
|
allowed_hosts: {}
|
||||||
dbs: {}
|
dbs: {}
|
||||||
users: {}
|
users: {}
|
||||||
|
privs: []
|
||||||
|
|
||||||
distro_pg_version_mapping:
|
distro_pg_version_mapping:
|
||||||
stretch: "9.6"
|
stretch: "9.6"
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,12 @@
|
||||||
become: true
|
become: true
|
||||||
with_dict: "{{ postgresql.dbs }}"
|
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
|
- name: add vacuum cronjob
|
||||||
cron:
|
cron:
|
||||||
name: db maintenance
|
name: db maintenance
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue