An example of how to test ansible scripts locally
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
roles/nginx/tasks
test
.gitignore
LICENSE.md
README.md
Vagrantfile
hosts
local.yml
provision.sh
remote.yml

README.md

Example: Testing Ansible Locally

This is an example how to test ansible playbooks on your local machine using vagrant.

If you run vagrant up or vagrant provision vagrant will automatically spin up a virtual machine, provision that VM using ansible and then run Serverspec tests on the VM.

Read more about how everything fits together in my blog post.