Razique Mahroua
2020-03-18 b85c91a8192593f6b62f93e11c971868964343a9
commit | author | age
93d261 1 # Ansible Role tests
SS 2
3 To run the test playbook(s) in this directory:
4
5   1. Install and start Docker.
6   1. Download the test shim (see .travis.yml file for the URL) into `tests/test.sh`:
7     - `wget -O tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/`
8   1. Make the test shim executable: `chmod +x tests/test.sh`.
9   1. Run (from the role root directory) `distro=[distro] playbook=[playbook] ./tests/test.sh`
10
11 If you don't want the container to be automatically deleted after the test playbook is run, add the following environment variables: `cleanup=false container_id=$(date +%s)`