aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/postgres-database.yml
diff options
context:
space:
mode:
authorPaul B <paul@bonaud.fr>2019-01-25 11:55:41 +0100
committerPaul B <paul@bonaud.fr>2019-01-29 11:42:40 +0100
commit4d626d5a5c05f4676c0a403929de775404f9e63c (patch)
treeec8f117f8368ce22a87e785362839c387a2e3c33 /tasks/postgres-database.yml
parent2bedf1bbf762903d955e4a76f674799a6acb2258 (diff)
downloadansible-postgresql-role-4d626d5a5c05f4676c0a403929de775404f9e63c.tar.gz
ansible-postgresql-role-4d626d5a5c05f4676c0a403929de775404f9e63c.tar.zst
ansible-postgresql-role-4d626d5a5c05f4676c0a403929de775404f9e63c.zip
feat(extensions): adds creation of extension on databases if needed
Diffstat (limited to 'tasks/postgres-database.yml')
-rw-r--r--tasks/postgres-database.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks/postgres-database.yml b/tasks/postgres-database.yml
index c7b09a8..c3537ea 100644
--- a/tasks/postgres-database.yml
+++ b/tasks/postgres-database.yml
@@ -18,3 +18,10 @@
18 owner: "{{ postgres_owner }}" 18 owner: "{{ postgres_owner }}"
19 when: 19 when:
20 - postgres_up.rc == 0 20 - postgres_up.rc == 0
21
22- name: Create database extensions
23 include_tasks: postgres-database-extensions.yml
24 loop: "{{ postgres_extensions| default([]) }}"
25 loop_control:
26 loop_var: postgres_extension
27 when: postgres_up.rc == 0