blob: 5a6ea18d55ce0dde8af73ab127ccdc967dfa7af7 [file] [log] [blame]
---
# xos-clear-db/tasks/main.yml
- name: Copy over database cleanup script
copy:
src: xos_clear_db.sql
dest: /tmp/xos_clear_db.sql
- name: Run database cleanup script
command: "su postgres -c 'psql -U postgres -d xos -f /tmp/xos_clear_db.sql'"
tags:
- skip_ansible_lint # test scenario destructive script