perf: postgresql ansible (#9469)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-02-08 18:13:05 +08:00
committed by GitHub
parent 03ad4124eb
commit ddff968be1
5 changed files with 15 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
vars:
ansible_python_interpreter: /usr/local/bin/python
tasks:
- name: Verify account
community.postgresql.postgresql_ping:
@@ -11,3 +12,5 @@
login_host: "{{ jms_asset.address }}"
login_port: "{{ jms_asset.port }}"
db: "{{ jms_asset.spec_info.db_name }}"
register: result
failed_when: not result.is_available