talas-group/04_INFRA_DEPLOIEMENT/Ansible/roles/postgres/tasks/replica.yml
senke 66471934af Initial commit: Talas Group project management & documentation
Knowledge base of ~80+ markdown files across 14 domains (00-13),
Logseq graph, hardware design files (KiCAD), infrastructure configs,
and talas-wiki static site.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 20:10:41 +02:00

27 lines
663 B
YAML

---
# file: roles/postgres/tasks/replica.yml
- name: "{{ pg_data_directory }}/recovery.conf"
template:
src: "recovery.conf"
dest: "{{ pg_data_directory }}/recovery.conf"
owner: postgres
group: postgres
backup: yes
mode: 0600
notify: restart postgres
when: pg_version is version('12', '<')
tags: postgres
- name: "{{ pg_data_directory }}/standby.signal"
file:
owner: postgres
group: postgres
mode: 0600
path: "{{ pg_data_directory }}/standby.signal"
state: touch
access_time: preserve
modification_time: preserve
notify: restart postgres
when: pg_version is version('12', '>=')
tags: postgres