Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 1 | --- |
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 Williams | 0552825 | 2017-02-10 22:13:47 -0700 | [diff] [blame] | 10 | command: "su postgres -c 'psql -U postgres -d xos -f /tmp/xos_clear_db.sql'" |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 11 | tags: |
12 | - skip_ansible_lint # test scenario destructive script | ||||
13 |