ansible-roles/patroni/tasks/config.yml

19 lines
448 B
YAML
Raw Normal View History

2023-03-27 12:02:22 +02:00
---
- name: Create a password for PostgreSQL repl user
command: "apg -a 0 -m 16"
register: postgresql_replication_password
- name: Create a password for PostgreSQL superuser user
command: "apg -a 0 -m 16"
register: postgresql_superuser_password
- name: Create Patroni config file
ansible.builtin.template:
src: patroni.conf.j2
dest: /etc/patroni/config-{{ cluster_name }}.yml
owner: root
group: root
mode: "0644"