diff options
author | Paul B <paul@bonaud.fr> | 2019-01-25 11:55:41 +0100 |
---|---|---|
committer | Paul B <paul@bonaud.fr> | 2019-01-29 11:42:40 +0100 |
commit | 4d626d5a5c05f4676c0a403929de775404f9e63c (patch) | |
tree | ec8f117f8368ce22a87e785362839c387a2e3c33 /tasks/postgres-database.yml | |
parent | 2bedf1bbf762903d955e4a76f674799a6acb2258 (diff) | |
download | ansible-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.yml | 7 |
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 | ||