this post was submitted on 14 Jan 2025
408 points (92.3% liked)

memes

11318 readers
2172 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 88 points 2 weeks ago (4 children)

Anyone that says yaml is readable is psychotic. It's literally objectively not readable because a random white space character can break the entire thing and that's by definition not readable I can't see whether there's a white space or not without explicitly setting that up in an editor

[–] [email protected] 43 points 2 weeks ago (1 children)

The scandinavian country codes, as understood by yaml:

  • se
  • false
  • dk
[–] [email protected] 9 points 2 weeks ago (2 children)

Only 1.1. Which everybody has been fiercely clinging onto since 2009, because YAML 1.2 did not seem to consider it a problem that they broke backwards compatibility on that behavior. So now the only way to keep existing YAML files working is for us all to keep pretending YAML 1.2 does not exist.

[–] [email protected] 5 points 2 weeks ago

Ow! My semver.

load more comments (3 replies)
[–] towerful 61 points 2 weeks ago (8 children)

uses yaml for scripting so it's clean and readable.

Eh....

I guess yaml is fine.
I hate the significance of whitespace, and the fact that I cannot find any editor that can auto-format. Which are both related, I guess: there is no way to know a yaml document is actually correctly formatted without knowing the intended schema.

Whereas JSON doesn't have this ambiguity. But JSON has it's own drawbacks.

[–] [email protected] 29 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I kinda like YAML for simple configuration files, but the YAML spec is borderline insane.

https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell

And don't get me started with ansible, it never works the way I think it should and almost every playbook or role I write is a pain to get right. When it works, it's a really nice tool and I couldn't manage my homelab as efficiently without Ansible, but it frustrated the hell out of me way too often.

[–] towerful 3 points 2 weeks ago (1 children)

I feel I spend more time iterating yaml.
There isn't any tooling that actually helps you write it.

I feel like there is a gap in the market for a solution that uses typescript, typed python or some other type-able scripting language, which then generates the yaml files.
A language that has language servers, intellisense, all the modern dev tools. Schemas are provided as simple type descriptors. And whatever script you write then produces the correct result.
Some sort of framework on top of that to provide an opinionated workflow, and some tooling to lint/validate/produce.
And the result is yaml files which can be checked/diffed against in-place config, and version controlled for consistency.

[–] [email protected] 5 points 2 weeks ago

You mean like ansible-lint or yaml-lint?

[–] [email protected] 28 points 2 weeks ago (2 children)

YAML is fine as a configuration language and ok data input language.

YAML is absolutely cursed as a programming language. As in Ansible has created a really shitty programming language inside of YAML. Should be burned with fire.

[–] [email protected] 3 points 2 weeks ago (1 children)
load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 3 points 2 weeks ago

Protip: you can actually just write your ansible (or any yaml really( as JSON.

load more comments (5 replies)
[–] [email protected] 56 points 2 weeks ago (3 children)

Honestly, fuck Ansible.

It's the dialup of automation tools. It was probably amazing 10 years ago.

It's YAML is awful, it scales terribly, it's so fucking slow at literally everything, it gives people who have no clue what they're doing a false sense of confidence.

The number of times I've seen app teams waste the time of support groups and engineers because something went wrong and they didn't have the knowledge to know why and need to waste so many man hours having other people solve it for them. I (the engineer) was added to a chat that had 15 people in it because they, after running ansible, saw errors in their server... So clearly there was a problem with the server... At no point did they question there Ansible job.

Of the various tools I've used, I prefer Salt. The YAML is slightly less ass and it's so much faster while also seeming to scaling better too. It by no means is perfect.

[–] [email protected] 12 points 2 weeks ago

You had me at “fuck Ansible”.

[–] [email protected] 10 points 2 weeks ago (1 children)

Thanks for including an alternative you'd recommend!

[–] [email protected] 6 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Well you will be happy to hear that it's owned by Broadcom now. While salt is better, I wouldn't use it just because of Broadcom.

But then again, Oracle now owns Redhat, so....

[–] [email protected] 13 points 2 weeks ago (1 children)
[–] [email protected] 3 points 2 weeks ago

Oops yeah. Not sure why I was thinking Oracle

[–] [email protected] 4 points 2 weeks ago (1 children)

I also appreciate the alternative suggestion. No terraform love?

[–] [email protected] 6 points 2 weeks ago* (last edited 2 weeks ago)

Terraform and Ansible do different things, they do have overlapping features, but ultimately they're meant to do different things. I use them both at my current job with Terraform running Ansible

[–] [email protected] 52 points 2 weeks ago* (last edited 2 weeks ago) (3 children)

"Keep it simple" says the project that decided it would be great to program in YAML...

I've tried using it to manage a few home servers and parameterizing anything was painful and boilerplate-ridden

[–] [email protected] 13 points 2 weeks ago (1 children)

Jist wait until you have to start fucking around with multiple incompatible versions of python for different targets.

[–] [email protected] 4 points 2 weeks ago (2 children)

Because group or host vars are hard?

load more comments (2 replies)
[–] [email protected] 8 points 2 weeks ago (1 children)

Except it isn't actually YAML you're writing, it's a jinja2 string template that parses to YAML because the expressions they came up with ended up not being sufficient.

[–] JackbyDev 6 points 2 weeks ago (1 children)

Mm, I love stacking weird formats. How many backslashes do I need for a regular expression to work right? 🥵

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 46 points 2 weeks ago (1 children)

THANK YOU FOR THE SUMMARY, BROTHER. I'M GONNA TRY IT OUT AFTER I CRANK MY HOG. AROOOOOO!

[–] [email protected] 16 points 2 weeks ago

I have to say, the resurgence of this energy in the last whenever has been refreshing. Can't we all just crank our hogs?

[–] [email protected] 19 points 2 weeks ago (3 children)
[–] [email protected] 16 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

NixOS : no dudes, its not raw screeching madness, its great. Just great. So great. Please read these 17 guides that are outdated more every minute to get started. Also, dont read that guide. We don't do that anymore, but there is no way for me to explain why unless you already know.

Ive tried NixOS three times now, and it hasn't took. Has anyone written a sane guide to the current iteration yet?

[–] [email protected] 5 points 2 weeks ago (2 children)

Listen. The more painful it is up front, the better you'll feel once you get it.

https://nixos-and-flakes.thiscute.world/

[–] [email protected] 11 points 2 weeks ago* (last edited 2 weeks ago)

This is the argument I use to convince straight guys to let me bum them

Just so you know.

[–] [email protected] 10 points 2 weeks ago (5 children)

Ahh, I didn't realize we had mixed some "git gud" dark souls shit into my devops.

But seriously, I'll give your guide a look. Everyone should taste madness occasionally.

load more comments (5 replies)
load more comments (2 replies)
[–] [email protected] 17 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I've been using Ansible for almost 10 years now and one thing I learned is to keep things simple, most issues I had with Ansible in the past were due to me taking the wrong approach to problem solving. In way, it forced me to not overcomplicate things.

I'm not the biggest fan of it, but I do prefer it over other IaCs.

edit: tbh my biggest issue with Ansible is other people who ask me "why not wrtie a bash script instead?"

[–] [email protected] 7 points 2 weeks ago

Finally, KISS enforced software

[–] [email protected] 9 points 2 weeks ago

I hate anything that uses python or depends on whitespace in it's code. Nothing but fucking problems. You know what's hard to see an extra space in a line of code. A missing semicolon is so much easier to find.

[–] [email protected] 8 points 2 weeks ago (1 children)

I finally understand Ansible.

[–] [email protected] 6 points 2 weeks ago

WASTHATSOFUCKINGHARD?!?!!

[–] [email protected] 7 points 2 weeks ago (1 children)

Since when is YAML readable and clean?

load more comments (1 replies)
[–] [email protected] 6 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

i keep telling myself what a timesaver ansible is, while at the same time my simple scripts got abstracted and puzzled into more files, much harder to quickly read and understand them and after hours of frustration, ansible actually works. there may be multiple minutes of delay between my tasks wasting time like hell but it works (as in not randomly fails to connect). except when it doesn’t. there still is a playbook where the host cannot be reached and i keep on failing to understand why as everything appears to be the same and looks correct. there will be more hours wasted.

load more comments (1 replies)
[–] [email protected] 6 points 2 weeks ago

Last time I checked on ansible, it was a sysadmin complaining that he could just do everything better with vanilla bash scripts and that redhat keeps riding it because every company keeps asking for ansible experience, even if it's now a dated product.

And just personally, declarative anything seems to defeat it's own purpose any time you want to do something non standard, which comes up more often than you'd think.

[–] [email protected] 6 points 2 weeks ago (1 children)

uses vanilla ssh

Clearly you haven't tried automation of network devices because it constantly bitches about missing ansible-pylibssh and falls back to Paramiko

load more comments (1 replies)
[–] [email protected] 5 points 2 weeks ago* (last edited 2 weeks ago)

Also completely parses your whole goddamn secrets file multiple times per run, so if you need to change a single server, make sure you have time.

[–] [email protected] 5 points 2 weeks ago

I love this meme format!

[–] [email protected] 4 points 2 weeks ago

You forgot that it can run without ssh set up, by installing ansible on the machines and letting them poll for changes.

load more comments
view more: next ›