]> git.immae.eu Git - github/fretlink/ansible-postgresql-role.git/blobdiff - test/main.yml
tests: adding a database creation with extensions
[github/fretlink/ansible-postgresql-role.git] / test / main.yml
index 625819985ceff6bc51a2714e843851aeaf98987f..bc9d27cb2bd000dff47209dc15691d3311b943c5 100644 (file)
             archive_enabled: True
             barman_directory: "{{ postgres_barman_directory }}"
             users:
+              - username: tester
+                password: tester
               - username: barman
                 password: "secret_cocktail"
                 permissions: 'SUPERUSER'
               - username: replicator
                 password: "secret_repli"
                 permissions: 'REPLICATION'
+            databases:
+              - dbname: test_database
+                owner: tester
+                extensions:
+                  - description: PostGis
+                    apt_deps:
+                      - "postgresql-{{ postgres_version }}-postgis"
+                    names:
+                      - postgis
+                      - postgis_topology
+                      - btree_gist
 
       with_items:
         - postgres_one