Hacker News new | ask | show | jobs
Show HN: testing Ansible playbooks *fast* (github.com)
2 points by lucasluitjes 82 days ago
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