AI made self-hosting fun again (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
> 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.