homelab/ansible/playbooks/database.yml

17 lines
364 B
YAML
Raw Permalink Normal View History

---
- hosts: database
vars:
# certbot_force: true
roles:
- role: ansible-role-postgresql
become: true
2022-11-29 20:23:44 +00:00
tasks:
2022-10-23 15:31:08 +00:00
- name: add pg_read_all_data to dump
community.postgresql.postgresql_membership:
2022-11-29 20:23:44 +00:00
target_roles:
2022-10-23 15:31:08 +00:00
- dump
groups:
2022-11-29 20:23:44 +00:00
- pg_read_all_data
2022-10-23 15:31:08 +00:00
become: true
become_user: "{{ postgresql_user }}"