mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-06 22:24:23 -07:00
postgresql_ext: fix module's failing when available ext versions contain a pure string (#1099) (#1104)
* postgresql_ext: fix module's failing when available ext versions contain a pure string
* Add unit tests
* Add changelog fragment
* fix
(cherry picked from commit 398421a9d1
)
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
f8fcc827cd
commit
ebb9d8a6fa
4 changed files with 85 additions and 6 deletions
|
@ -330,6 +330,23 @@
|
|||
- result.failed == true
|
||||
- result.msg == "Extension non_existent is not installed"
|
||||
|
||||
######################################################################
|
||||
# https://github.com/ansible-collections/community.general/issues/1095
|
||||
- name: Install postgis
|
||||
package:
|
||||
name: postgis
|
||||
|
||||
- name: Create postgis extension
|
||||
<<: *task_parameters
|
||||
postgresql_ext:
|
||||
<<: *pg_parameters
|
||||
name: postgis
|
||||
version: latest
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
|
||||
# Cleanup:
|
||||
- name: postgresql_ext_version - drop the extension
|
||||
<<: *task_parameters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue