ansible-roles/patroni/tasks/config.yml
Jérémy Lecour 5cb3762080
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2798|13|2785|8|:-1: Output truncated.
gitea/ansible-roles/pipeline/head This commit looks good
WIP: use the systemd unit and config conventions of Patroni 3
2023-05-12 18:12:06 +02:00

19 lines
482 B
YAML

---
- name: Create a password for PostgreSQL repl user
command: "apg -M LCN -n1 -m 16"
register: patroni_postgresql_replication_password
check_mode: no
- name: Create a password for PostgreSQL superuser user
command: "apg -M LCN -n1 -m 16"
register: patroni_postgresql_superuser_password
check_mode: no
- name: Create Patroni config file
ansible.builtin.template:
src: config.j2
dest: /etc/patroni/config.yml
owner: root
group: root
mode: "0644"