> For my VPS infrastructure, I’ve also started building my own Debian-based bootc image (after thinking about it for some time).
> I still remember what updating a service used to look like: bumping the version and adjusting the Docker Compose file on my laptop, pushing the changes to the Git remote, SSHing into the server, pulling the changes, and finally deploying them. Now, a single Git push is enough. If a push is even necessary.
Both of these cases are a great fit for Ansible or the alternatives. Given how much the author leans towards the idea of storing configuration in repos, it's a bit odd I haven't seen a single mention of configuration management tools.
Generate Ansible playbooks, set up a simple CI/CD workflow and you don't need an agent to do the same manual labor every time - it just needs to bump the versions and make a PR/push. Saves a great deal of tokens.
I have a feeling that AI prices are only going to go up and such 'frivolous' usage when agents repeat a lot of unnecessary actions is going to become an anti-pattern (unless you have unlimited funds).
I do notice that LLM agents love to re-invent the wheel when not prodded to use existing solutions. It is usually a bit of "I created a bash script to ...<whatever>" and then the existence of that script biases the agent later since that gets into the repo/context and just wants to build on what is already there.
Then of course when asked why it didnt use ansible ect. because that is the use case it is all "You are totally right etc etc."
I have not really had that experience though I suppose it could happen if you let it plan ahead.
What I do have happen is if I ask for an accessible html page it will spin up a python server script somewhere. It does this I assume because the existing code in the repository has python and this heavily biases its approach.
Author doesn't go into details on what they configure, but as bootc user I can say that Ansible is not a replacement for bootc. Big point of bootable images is that a lot of problems now happen during image building and not during update/deployment. Although I use bootc for my desktop OS, not homelab.
Might as well just go all the way and use NixOS. Programmable, manages the entire operating system, and reproducible. Nix is a strongly typed functional language which makes AI highly effective at building and debugging config.
I built a self-hosted router and app server on top of it:
Yep I'm running TalOS and Nix on all my homelab infra now. I've got a 20RU rack cabinet full of end of life hardware running a bunch of shit at home now. Proxmox cluster underneath.
I'm a platform Lead so know my in and outs of k8s. Claude rebuilt my hodge podge of Ansible scripts on Proxmox into all Nix in a couple of nights. And I'm using GitHub Actions to manage my flakes for the private repo.
I started switching my homlab to NixOS just before the AI craze started and it was fulfilling but also extraordinarily time consuming. Fast forward to today, everything including my workstations is managed by Nix and AI agents are just crushing it. Compared to k8s and Ansible (still use those at work) I feel AI is much more effective and reliable with a NixOS setup. It can test everything locally, server-side debugging is (nearly) unnecessary and it can identify the esoteric workarounds sometimes needed with ease because it can verify stuff quickly.
if there was a NixOS based distro but with Debian governance that would be absolutely perfect for the severs (and desktop for that matter, too). I believe it's a niche that is still waiting to be filled and it would be a perfect distribution.
The author does mention using Renovate + GitHub/Forgejo Actions to automate configuration updates and deployment. But it's not clear how those Compose files are actually deployed. I'd assume it’s just the good old 'git pull' on the server and 'docker compose up -d' as part of the actions workflow.
I've done this, then used Ansible playbooks to deploy Compose services on separate servers, and my latest iteration is Uncloud (https://github.com/psviderski/uncloud) which solves both clustering and Compose deployment.
So if you want to deploy to multiple machines while still using the simple Compose format but don't want to go the k8s route, you may find Uncloud appealing. It's a CLI with commands similar to Docker so it's easy for AI agents to pick it up as well.
I use a very similar way for a single VPS setup. Instead of SSHing into the server just to do a git pull and docker compose up, I ended up writing a small tool to do it right on the server every minute.
So this tool has been running for a couple of years on my servers and nowadays I use AII to update the configs. That way the AI can't break anything on the server, works pretty good.
I had a similar realisation when I research building a self hosted setup.
I settled on rootless Podman quadlets with systemd and Ansible to orchestrate it.
This is so simple, well documented and non-magic that even the cheapest models are good with setting it up.
I usually just point an agent at some GH repo or project documentation to prepare a new role based on existing setup. Few minutes later it's all ready and usually doesn't even need any tweaks.
The hardest part was maybe just setting up Caddy (in a clean amd organised way) and Cloudflare tunnel. Everything else is just additive now.
Sorry for the inevitable "actually nix" but I think actually nix is strictly superior now that we have good AI.
Ansible lets you stick with the distros you're already using but now it's so easy to just say "port that to NixOS" I'm not sure this benefit is very meaningful any more.
So then you can get declarative configuration from the ground up instead of kinda tacking it onto a legacy system using janky Python plugins, and using a proper language instead of templated YAML.
In fact you don't even need a container runtime any more, you can just run everything under systemd on NixOS and if something isn't in nixpkgs you can just say "package this service in Nix" - haven't seen Claude ever fail to oneshot these tasks.
At minimum, have the agent make a tool for you that doesn’t need the agent anymore if you’re going to be doing the same thing over and over again and it doesn’t NEED the of dynamic reasoning ability that agents have.
> I still remember what updating a service used to look like: bumping the version and adjusting the Docker Compose file on my laptop, pushing the changes to the Git remote, SSHing into the server, pulling the changes, and finally deploying them. Now, a single Git push is enough. If a push is even necessary.
Both of these cases are a great fit for Ansible or the alternatives. Given how much the author leans towards the idea of storing configuration in repos, it's a bit odd I haven't seen a single mention of configuration management tools.
Generate Ansible playbooks, set up a simple CI/CD workflow and you don't need an agent to do the same manual labor every time - it just needs to bump the versions and make a PR/push. Saves a great deal of tokens.
I have a feeling that AI prices are only going to go up and such 'frivolous' usage when agents repeat a lot of unnecessary actions is going to become an anti-pattern (unless you have unlimited funds).
Replies (8)
Then of course when asked why it didnt use ansible ect. because that is the use case it is all "You are totally right etc etc."
Replies (1)
Replies (1)
What I do have happen is if I ask for an accessible html page it will spin up a python server script somewhere. It does this I assume because the existing code in the repository has python and this heavily biases its approach.
Replies (1)
I built a self-hosted router and app server on top of it:
https://HomeFree.host
Replies (3)
I'm a platform Lead so know my in and outs of k8s. Claude rebuilt my hodge podge of Ansible scripts on Proxmox into all Nix in a couple of nights. And I'm using GitHub Actions to manage my flakes for the private repo.
It's pretty great.
In fact I wish Debian did it themselves.
I've done this, then used Ansible playbooks to deploy Compose services on separate servers, and my latest iteration is Uncloud (https://github.com/psviderski/uncloud) which solves both clustering and Compose deployment.
So if you want to deploy to multiple machines while still using the simple Compose format but don't want to go the k8s route, you may find Uncloud appealing. It's a CLI with commands similar to Docker so it's easy for AI agents to pick it up as well.
I settled on rootless Podman quadlets with systemd and Ansible to orchestrate it.
This is so simple, well documented and non-magic that even the cheapest models are good with setting it up.
I usually just point an agent at some GH repo or project documentation to prepare a new role based on existing setup. Few minutes later it's all ready and usually doesn't even need any tweaks.
The hardest part was maybe just setting up Caddy (in a clean amd organised way) and Cloudflare tunnel. Everything else is just additive now.
Ansible lets you stick with the distros you're already using but now it's so easy to just say "port that to NixOS" I'm not sure this benefit is very meaningful any more.
So then you can get declarative configuration from the ground up instead of kinda tacking it onto a legacy system using janky Python plugins, and using a proper language instead of templated YAML.
In fact you don't even need a container runtime any more, you can just run everything under systemd on NixOS and if something isn't in nixpkgs you can just say "package this service in Nix" - haven't seen Claude ever fail to oneshot these tasks.