mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 13:29:08 -07:00
postgresql_info: add in_recovery return value to show if a service in recovery mode or not (#1091) (#1093)
* postgresql_info: add in_recovery return value to show if a service is in recovery mode or not
* add changelog fragment
* fix sanity
(cherry picked from commit da7f9ffc3f
)
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
ee8f87412a
commit
efa884b64a
3 changed files with 20 additions and 1 deletions
|
@ -63,6 +63,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- result.version != {}
|
||||
- result.in_recovery == false
|
||||
- result.databases.{{ db_default }}.collate
|
||||
- result.databases.{{ db_default }}.languages
|
||||
- result.databases.{{ db_default }}.namespaces
|
||||
|
@ -81,11 +82,13 @@
|
|||
filter:
|
||||
- ver*
|
||||
- rol*
|
||||
- in_recov*
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.version != {}
|
||||
- result.roles
|
||||
- result.in_recovery == false
|
||||
- result.databases == {}
|
||||
- result.repl_slots == {}
|
||||
- result.replications == {}
|
||||
|
@ -126,10 +129,12 @@
|
|||
filter:
|
||||
- "!ver*"
|
||||
- "!rol*"
|
||||
- "!in_rec*"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.version == {}
|
||||
- result.in_recovery == None
|
||||
- result.roles == {}
|
||||
- result.databases
|
||||
|
||||
|
@ -144,6 +149,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- result.version != {}
|
||||
- result.in_recovery == false
|
||||
- result.databases.{{ db_default }}.collate
|
||||
- result.databases.{{ db_default }}.languages
|
||||
- result.databases.{{ db_default }}.namespaces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue