Skip to content

Commit

Permalink
PostgreSQL recovery details
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Nov 7, 2024
1 parent 704119c commit d4e0063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automation/roles/patroni/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -736,14 +736,14 @@
failed_when: false
when: is_master | bool

- name: Get PostgreSQL recovery log
- name: Check PostgreSQL recovery log
ansible.builtin.command: "grep -A2 'recovery stopping' /tmp/pg_recovery_{{ ansible_date_time.date }}.log"
register: pg_recovery_result
changed_when: false
failed_when: false
when: is_master | bool

- name: Print PostgreSQL recovery log
- name: PostgreSQL recovery details
ansible.builtin.debug:
msg: '{{ pg_recovery_result.stdout_lines }}'
when: pg_recovery_result.stdout_lines is defined
Expand Down

0 comments on commit d4e0063

Please sign in to comment.