Back to browse
GitHub Repository

Setup for testing ansible setups fast

2 starsShell

testing Ansible playbooks *fast*

by lucasluitjes·Mar 28, 2026·2 points·0 comments

AI Analysis

●●SolidSolve My ProblemNiche Gem

Replaces slow VM tests with 11-second LXD container spins using ZFS snapshots.

Strengths
  • ZFS snapshots revert containers instantly instead of rebuilding VMs every time.
  • Host-level apt caching plus eatmydata drastically reduce overall system package installation latency.
  • Enables SSH pipelining and persistent connections to remove repeated SSH authentication overhead.
Weaknesses
  • Requires ZFS and LXD on host, limiting compatibility to Linux environments.
  • Less feature-rich than Molecule, lacks any built-in scenario management or verification plugins.
Target Audience

DevOps engineers and sysadmins using Ansible

Similar To

Molecule · Vagrant · Testinfra

Post Description

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

Similar Projects

Security●●●Banger

Hazmat – I made unrestricted Claude Code safe on macOS

TLA+ verified sandbox makes --dangerously-skip-permissions safe for Claude Code and other agents on macOS.

WizardrySolve My ProblemShip It
dredozubov
112mo ago
AI/ML●●●Banger

Thaw – Git branch for a running LLM (fork agents, skip prefill)

Git branch for LLM agents — 400x faster forking with preserved KV cache.

WizardryBig BrainSolve My Problem
nilsmatteson
3019d ago