add dump user
This commit is contained in:
parent
e9361a6c90
commit
262c97168b
@ -23,6 +23,8 @@ postgresql_users:
|
||||
password: "{{ lookup('hashi_vault', 'secret=secrets/data/ansible/database:dendrite')}}"
|
||||
- name: paperless
|
||||
password: "{{ lookup('hashi_vault', 'secret=secrets/data/ansible/database:paperless')}}"
|
||||
- name: dump
|
||||
password: "{{ lookup('hashi_vault', 'secret=secrets/data/ansible/database:dump')}}"
|
||||
|
||||
postgresql_databases:
|
||||
- name: wikijs
|
||||
@ -45,3 +47,4 @@ postgresql_databases:
|
||||
owner: dendrite
|
||||
- name: paperless
|
||||
owner: paperless
|
||||
|
||||
|
@ -5,3 +5,12 @@
|
||||
roles:
|
||||
- role: ansible-role-postgresql
|
||||
become: true
|
||||
tasks:
|
||||
- name: add pg_read_all_data to dump
|
||||
community.postgresql.postgresql_membership:
|
||||
target_roles:
|
||||
- dump
|
||||
groups:
|
||||
- pg_read_all_data
|
||||
become: true
|
||||
become_user: "{{ postgresql_user }}"
|
||||
|
@ -7,5 +7,6 @@
|
||||
roles:
|
||||
- system
|
||||
- autofs
|
||||
- msmtp
|
||||
- role: msmtp
|
||||
when: ansible_os_family != "RedHat"
|
||||
- cronie
|
||||
|
Loading…
Reference in New Issue
Block a user