Skip to content

Commit

Permalink
update yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahms committed Sep 29, 2023
1 parent 6195ace commit 8e4f175
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions roles/setup_pgd/tasks/bdr_init_physical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@
- not pg_wal_state.islnk
become: true
block:
# - name: Ensure pg_wal directory is empty
# ansible.builtin.command: rm -rf {{ pg_wal }}/*
# - name: Copy WAL files from pg_data/pg_wal to pg_wal
# ansible.builtin.command: rsync -cavr {{ pg_data }}/pg_wal/* {{ pg_wal }}
# - name: Ensure pg_wal directory is empty
# ansible.builtin.command: rm -rf {{ pg_wal }}/*
# - name: Copy WAL files from pg_data/pg_wal to pg_wal
# ansible.builtin.command: rsync -cavr {{ pg_data }}/pg_wal/* {{ pg_wal }}
- name: Synchronize pg_data/pg_wal file with pg_wal
ansible.posix.synchronize:
src: "{{ pg_data }}/pg_wal/"
Expand All @@ -110,10 +110,12 @@
delegate_to: "{{ inventory_hostname }}"
become: true
become_user: "{{ pg_owner }}"

- name: Remove pg_wal from pg_data directory
ansible.builtin.file:
path: "{{ pg_data }}/pg_wal"
state: absent

- name: Create pg_wal as symbolic link in pg_data
ansible.builtin.file:
src: "{{ pg_wal }}"
Expand Down

0 comments on commit 8e4f175

Please sign in to comment.