homelab/ansible/playbooks/database.yml
2022-10-23 17:31:08 +02:00

17 lines
368 B
YAML

---
- hosts: database
vars:
# certbot_force: true
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 }}"