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 | ||||
10 | command: "psql -U postgres -d xos -f /tmp/xos_clear_db.sql" | ||||
11 | tags: | ||||
12 | - skip_ansible_lint # test scenario destructive script | ||||
13 |