Show HN: testing Ansible playbooks *fast*

https://github.com/lucasluitjes/ansible-lxd-boilerplate
Testing ansible playbooks against local VMs is nice. But also pretty slow. I was wondering how far I could optimize that process while still having full reproducibility.

rebuild.sh makes a fresh Ubuntu installation, runs an ansible playbook to install Caddy and configures it, and uses curl to verify that Caddy is running correctly.

$ time ./rebuild.sh

[...]

real 0m11.664s

user 0m0.789s

sys 0m0.925s

Comments