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')}}"
|
password: "{{ lookup('hashi_vault', 'secret=secrets/data/ansible/database:dendrite')}}"
|
||||||
- name: paperless
|
- name: paperless
|
||||||
password: "{{ lookup('hashi_vault', 'secret=secrets/data/ansible/database: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:
|
postgresql_databases:
|
||||||
- name: wikijs
|
- name: wikijs
|
||||||
@ -45,3 +47,4 @@ postgresql_databases:
|
|||||||
owner: dendrite
|
owner: dendrite
|
||||||
- name: paperless
|
- name: paperless
|
||||||
owner: paperless
|
owner: paperless
|
||||||
|
|
||||||
|
@ -5,3 +5,12 @@
|
|||||||
roles:
|
roles:
|
||||||
- role: ansible-role-postgresql
|
- role: ansible-role-postgresql
|
||||||
become: true
|
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:
|
roles:
|
||||||
- system
|
- system
|
||||||
- autofs
|
- autofs
|
||||||
- msmtp
|
- role: msmtp
|
||||||
|
when: ansible_os_family != "RedHat"
|
||||||
- cronie
|
- cronie
|
||||||
|
Loading…
Reference in New Issue
Block a user