Skip to content

Commit

Permalink
Merge branch 'master' into datapusher
Browse files Browse the repository at this point in the history
  • Loading branch information
bzar committed Oct 13, 2017
2 parents 89acfe2 + 7591169 commit bdd53c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/database/tasks/local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
tags:
- spatial

- name: Copy SQL files
template: src={{ item }} dest=/tmp/{{ item }} owner=postgres group=postgres mode="0640"
with_items: "{{ sql_files_to_execute }}"

- name: Execute SQL files
become_user: postgres
shell: cat /tmp/{{ item }} | psql --set ON_ERROR_STOP=1
Expand Down

0 comments on commit bdd53c4

Please sign in to comment.