diff options
author | Paul B <paul+gh@bonaud.fr> | 2019-01-29 15:45:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 15:45:25 +0100 |
commit | 0c83dd00b4110d55b1602ca8d732a8cb414cfd0a (patch) | |
tree | 5191176c7f7226def631feb0f6cdc2a12045f0e4 /tasks/postgres-database.yml | |
parent | 2bedf1bbf762903d955e4a76f674799a6acb2258 (diff) | |
parent | 7b241a44e602d70c97e9b9e5af4b600ff7eb3651 (diff) | |
download | ansible-postgresql-role-1.4.0.tar.gz ansible-postgresql-role-1.4.0.tar.zst ansible-postgresql-role-1.4.0.zip |
Merge pull request #6 from paulRbr/pg-extensions1.4.0
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 | ||