add dump user

This commit is contained in:
vincent 2022-10-23 17:31:08 +02:00
parent e9361a6c90
commit 262c97168b
3 changed files with 14 additions and 1 deletions

View File

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

View File

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

View File

@ -7,5 +7,6 @@
roles: roles:
- system - system
- autofs - autofs
- msmtp - role: msmtp
when: ansible_os_family != "RedHat"
- cronie - cronie