Eric Morino
7e88cff188
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2784|18|2766|4|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/patroni/1//ansiblelint">Evolix » ansible-roles » patroni #1</a>
gitea/ansible-roles/pipeline/head This commit looks good
19 lines
460 B
YAML
19 lines
460 B
YAML
---
|
|
|
|
- name: Create a password for PostgreSQL repl user
|
|
command: "apg -M LCN -n1 -m 16"
|
|
register: postgresql_replication_password
|
|
|
|
- name: Create a password for PostgreSQL superuser user
|
|
command: "apg -M LCN -n1 -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"
|
|
|