From 39baf880552fd403c0df08f6d8531d70850b4470 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:29:53 +0800 Subject: [PATCH] fix: ansible postgresql (#11629) Co-authored-by: feng <1304903146@qq.com> --- .../automations/push_account/database/postgresql/main.yml | 3 +++ .../automations/verify_account/database/postgresql/main.yml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/accounts/automations/push_account/database/postgresql/main.yml b/apps/accounts/automations/push_account/database/postgresql/main.yml index 68fc95324..8b1ecc8ec 100644 --- a/apps/accounts/automations/push_account/database/postgresql/main.yml +++ b/apps/accounts/automations/push_account/database/postgresql/main.yml @@ -31,6 +31,7 @@ role_attr_flags: LOGIN ignore_errors: true when: result is succeeded + register: change_info - name: Verify password community.postgresql.postgresql_ping: @@ -42,3 +43,5 @@ when: - result is succeeded - change_info is succeeded + register: result + failed_when: not result.is_available diff --git a/apps/accounts/automations/verify_account/database/postgresql/main.yml b/apps/accounts/automations/verify_account/database/postgresql/main.yml index 077a9ce76..2c97d625f 100644 --- a/apps/accounts/automations/verify_account/database/postgresql/main.yml +++ b/apps/accounts/automations/verify_account/database/postgresql/main.yml @@ -3,7 +3,6 @@ vars: ansible_python_interpreter: /usr/local/bin/python - tasks: - name: Verify account community.postgresql.postgresql_ping: