blob: 5a6ea18d55ce0dde8af73ab127ccdc967dfa7af7 [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001---
2# xos-clear-db/tasks/main.yml
3
4- name: Copy over database cleanup script
5 copy:
6 src: xos_clear_db.sql
7 dest: /tmp/xos_clear_db.sql
8
9- name: Run database cleanup script
Zack Williams05528252017-02-10 22:13:47 -070010 command: "su postgres -c 'psql -U postgres -d xos -f /tmp/xos_clear_db.sql'"
Zack Williamsa2763112017-01-03 11:38:38 -070011 tags:
12 - skip_ansible_lint # test scenario destructive script
13