From ac2dd6c1020d86953b024b6ba73d4d209d92182b Mon Sep 17 00:00:00 2001 From: hannahms <36494235+hannahms@users.noreply.github.com> Date: Tue, 21 Mar 2023 13:51:22 -0400 Subject: [PATCH] edit flag --- roles/init_dbserver/tasks/rm_initdb.yml | 8 ++++---- roles/setup_replication/tasks/rm_replication.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/init_dbserver/tasks/rm_initdb.yml b/roles/init_dbserver/tasks/rm_initdb.yml index 6441c222d..c5dadad74 100644 --- a/roles/init_dbserver/tasks/rm_initdb.yml +++ b/roles/init_dbserver/tasks/rm_initdb.yml @@ -44,8 +44,8 @@ state: absent become: true when: - - force_data is defined - - force_data + - force_rm_data is defined + - force_rm_data - name: Remove postgres log directory if exists ansible.builtin.file: @@ -61,8 +61,8 @@ become: true when: - pg_wal|length > 0 - - force_wal is defined - - force_wal + - force_rm_wal is defined + - force_rm_wal - name: Remove postgres local wal archive directory if exists ansible.builtin.file: diff --git a/roles/setup_replication/tasks/rm_replication.yml b/roles/setup_replication/tasks/rm_replication.yml index cd960d5b7..2e49866f2 100644 --- a/roles/setup_replication/tasks/rm_replication.yml +++ b/roles/setup_replication/tasks/rm_replication.yml @@ -53,8 +53,8 @@ path: "{{ pg_data }}" state: absent when: - - force_data is defined - - force_data + - force_rm_data is defined + - force_rm_data become: true - name: Remove Postgres log directory if exists @@ -71,8 +71,8 @@ become: true when: - pg_wal|length > 0 - - force_wal is defined - - force_wal + - force_rm_wal is defined + - force_rm_wal - name: Remove postgres default data directory if exists ansible.builtin.file: