fix: ansible postgresql (#11629)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-09-20 14:29:53 +08:00
committed by GitHub
parent 90131db55a
commit 39baf88055
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -3,7 +3,6 @@
vars:
ansible_python_interpreter: /usr/local/bin/python
tasks:
- name: Verify account
community.postgresql.postgresql_ping: