Skip to content

Commit

Permalink
Fixed the hstore issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ahelal committed Apr 1, 2014
1 parent 3953b95 commit 0dc4b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
- name: PostgreSQL | Add hstore to the databases with the requirement
sudo: yes
sudo_user: "{{postgresql_admin_user}}"
shell: "{% if item.hstore %}psql {{item.name}} -c 'CREATE EXTENSION IF NOT EXISTS hstore;'{% endif %}"
shell: "psql {{item.name}} -c 'CREATE EXTENSION IF NOT EXISTS hstore;"
with_items: postgresql_databases
when: "item.hstore is defined and item.hstore == 'yes'"

0 comments on commit 0dc4b13

Please sign in to comment.