Debian Codegraph @

ansible_collections/community/postgresql/tests/integration/targets/postgresql_ext/tasks/main.yml

raw
1 ####################################################################
2 # WARNING: These are designed specifically for Ansible tests #
3 # and should not be used as examples of how to write Ansible roles #
4 ####################################################################
5
6 - import_tasks: postgresql_ext_session_role.yml
7
8 # Initial CI tests of postgresql_ext module.
9 # pg_extension system view is available from PG 9.1.
10 # The tests are restricted by Fedora because there will be errors related with
11 # attempts to change the environment during postgis installation or
12 # missing postgis package in repositories.
13 # Anyway, these tests completely depend on Postgres version,
14 # not specific distributions.
15 - import_tasks: postgresql_ext_initial.yml
16 when:
17 - postgres_version_resp.stdout is version('9.1', '>=')
18 - ansible_distribution == 'Fedora'
19
20 # CI tests of "version" option.
21 # It uses a mock extension, see test/integration/targets/setup_postgresql_db/.
22 # TODO: change postgresql_ext_initial.yml to use the mock extension too.
23 - import_tasks: postgresql_ext_version_opt.yml
24 when:
25 - ansible_distribution == 'Ubuntu'
26 - postgres_version_resp.stdout is version('9.1', '>=')