this post was submitted on 16 Dec 2025
52 points (93.3% liked)

Selfhosted

59999 readers
565 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

  4. Don't duplicate the full text of your blog or git here. Just post the link for folks to click.

  5. Submission headline should match the article title.

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I am working on setting up a home server but I want it to be reproducible if I need to make large changes, switch out hardware, or restore from a failure. What do you use to handle this?

you are viewing a single comment's thread
view the rest of the comments
[–] atzanteol@sh.itjust.works 6 points 6 months ago (2 children)

Terraform and ansible. Script service configuration and use source control. Containerize services where possible to make them system agnostic.

[–] Anonymouse@lemmy.world 2 points 6 months ago (1 children)

How do you decide what's for Terraform and what's for Ansible?

[–] atzanteol@sh.itjust.works 3 points 6 months ago

They're good at different things.

Terraform is better at "here is a configuration file - make my infrastructure look like it" and Ansible is better at "do these things on these servers".

In my case I use Terraform to create proxmox VMs and then Ansible provisions and configures software on those VMs.