this post was submitted on 29 Nov 2026
576 points (97.1% liked)

Selfhosted

64137 readers
1661 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] jdr@lemmy.ml 6 points 20 hours ago (2 children)

Isn't the point of Ansible that it doesn't depend on the underlying distro?

[–] talkingpumpkin@lemmy.world 5 points 19 hours ago (1 children)

Nope. Writing portable playbooks is hard, and testing them is harder

[–] jdr@lemmy.ml -1 points 19 hours ago (1 children)

A certain world's most valuable company wasted me a huge amount of time by supplying a smorgasbord of ever-so-slightly broken playbooks that borked my extremely expensive servers running the official OS.

If you're going to be un portable and broken let's cut out the middleman and just use bash scripts.

[–] tonywu@lemmy.world 2 points 18 hours ago (1 children)

I think you are missing the purpose of Ansible.

[–] jdr@lemmy.ml 1 points 17 hours ago (2 children)
[–] tonywu@lemmy.world 3 points 12 hours ago* (last edited 12 hours ago)

Making playbook portable is a choice, but there are other benefits like error handling and conditional and delayed actions that you can’t easily do with bash.

[–] frongt@lemmy.zip 3 points 12 hours ago

Running something against a bunch of systems. Ideally idempotence, too, unless you're doing something unsupported and then it's up to you to ensure.

[–] neclimdul@lemmy.world 3 points 18 hours ago (1 children)

the idea would be to have playbooks support all distros but any infrastructure as code has to have distro specific code for package names and subtle differences in config.

But you've got the right idea. the point is that you can test that and then you depend on the distro less because your playbook takes care of the complexity.

[–] jdr@lemmy.ml 2 points 16 hours ago (1 children)

Ya, I was being a bit glib, because that's how it was pitched to me, but in my limited experience it never even nearly lived up to that. It's so great to have generic functions to install a package or change a setting, but maybe too Quixotic to assume it'll usually work.

[–] neclimdul@lemmy.world 2 points 9 hours ago

i hear you. its still really valuable, just not the silver bullet its often sold as.

i think for homelabers and smaller shops, its more useful as a recovery tool. Also a bit of a deployment tool since it gives you one place to rationalize a server and remind ypu what you've done. Or if you lots of vms, asserting some base tooling like management users and monitoring.

Also, i think the golden age of those tools has past, a lot of the tooling that made it awesome is stagnant with everyone in the cloud and k8s and containers. still valuable just a lot more niche.