Eric Morino
602bb22984
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2788|3|2785|6|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/238//ansiblelint">Evolix » ansible-roles » unstable #238</a>
gitea/ansible-roles/pipeline/head This commit looks good
27 lines
652 B
YAML
27 lines
652 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"
|
|
|
|
- mane: Create Systemd Unit for Patroni
|
|
ansible.builtin.template:
|
|
src: patroni.service.j2
|
|
dest: /etc/systemd/system/patroni.service
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
|