~ephes

Building things with Django and coding agents. Breaking things in my home lab. Writing about both.

Out of YAML

Out of YAML: cover (YAML soup)

I have used Ansible since around 2013. The setup this post is about is much younger: I started it in late summer 2025, built with coding agents, and it grew to 248 roles, 229 playbooks and a bit over 200,000 lines of YAML and Jinja templates in a little over a year. All 177 services I run now deploy with pyinfra by default, a deploy tool where the deploys are ordinary Python. Coding agents did the porting, just as they had built the Ansible setup in the first place.

Every deploy is switched, and Ansible is gone. What I want to write down is why I wanted to switch at all, how the two tools differ, what was easy and what was hard, and what actually got better. The short answer: the tests went from two hours to minutes, deploys to my servers take about half as long when little changes, and the code did not get smaller.

Read more →