Add (very basic) postgresql.privs option

This commit is contained in:
Julian Rother 2025-01-29 16:36:45 +01:00
parent f97b24dbdd
commit ee91be5330
Signed by: julian
GPG key ID: C19B924C0CD13341
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -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