Automatically restore database from dump or connection.
Example, how to use, can be found at tests directory.
ansible-galaxy install roquie.ansible-db-restore
Example:
pg_dump -F t -O -x -d ansible-db-restore -n public > test-db.tar
For now supports:
- PostgreSQL
- Ubuntu 16.04 LTS
- Ubuntu 14.04 LTS
- Centos 7
- Debian 8
- Debian 9
cd /path/to/projectcd tests && ansible-galaxy install -r requirements.yml && cd ..vagrant up
If u want rename project, make sure to rename role (ansible-db-restore) inside tests/playbooks/vagrant.yml.
MIT