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: