ansible-roles/patroni/tasks/config.yml

19 lines
460 B
YAML
Raw Normal View History

2023-03-27 12:02:22 +02:00
---
- name: Create a password for PostgreSQL repl user
2023-03-30 18:23:46 +02:00
command: "apg -M LCN -n1 -m 16"
2023-03-27 12:02:22 +02:00
register: postgresql_replication_password
- name: Create a password for PostgreSQL superuser user
2023-03-30 18:23:46 +02:00
command: "apg -M LCN -n1 -m 16"
2023-03-27 12:02:22 +02:00
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"