Skip to content

Commit

Permalink
update flags
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahms authored and vibhorkumar123 committed Mar 21, 2023
1 parent ac2dd6c commit df4bc62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions roles/init_dbserver/tasks/rm_initdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
state: absent
become: true
when:
- force_rm_data is defined
- force_rm_data
- force_rm_pg_data is defined
- force_rm_pg_data

- name: Remove postgres log directory if exists
ansible.builtin.file:
Expand All @@ -61,8 +61,8 @@
become: true
when:
- pg_wal|length > 0
- force_rm_wal is defined
- force_rm_wal
- force_rm_pg_wal is defined
- force_rm_pg_wal

- name: Remove postgres local wal archive directory if exists
ansible.builtin.file:
Expand Down
8 changes: 4 additions & 4 deletions roles/setup_replication/tasks/rm_replication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
path: "{{ pg_data }}"
state: absent
when:
- force_rm_data is defined
- force_rm_data
- force_rm_pg_data is defined
- force_rm_pg_data
become: true

- name: Remove Postgres log directory if exists
Expand All @@ -71,8 +71,8 @@
become: true
when:
- pg_wal|length > 0
- force_rm_wal is defined
- force_rm_wal
- force_rm_pg_wal is defined
- force_rm_pg_wal

- name: Remove postgres default data directory if exists
ansible.builtin.file:
Expand Down

0 comments on commit df4bc62

Please sign in to comment.