409
Keep it simple (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] ColonelThirtyTwo@pawb.social 53 points 2 years ago* (last edited 2 years ago)

"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

[-] Funwayguy@lemmy.world 13 points 2 years ago

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

[-] FlexibleToast@lemmy.world 4 points 2 years ago

Because group or host vars are hard?

[-] Lichtblitz@discuss.tchncs.de 2 points 2 years ago

No. Because the python version of the host and the target server must loosely match up. Otherwise you get some cryptic error messages in some unexpected modules. Red Hat's solution: just manage RHEL 9 targets from RHEL9 hosts and RHEL8 from RHEL8 hosts. There is no official way to align python versions across that major.

[-] FlexibleToast@lemmy.world 2 points 2 years ago

That's not entirely true. You could use Ansible Navigator and Execution Environments.

[-] corsicanguppy@lemmy.ca 2 points 2 years ago

fucking around with multiple incompatible versions of python

They're being treated for PTSD in solaris-land.

Yeah. I said solaris.

[-] tzrlk@lemmy.world 8 points 2 years ago

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@programming.dev 6 points 2 years ago

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

[-] Hupf@feddit.org 1 points 2 years ago

Well it's bash down the line so I'll say five.

[-] themaninblack@lemmy.world 1 points 2 years ago

I seem to remember having the same trouble, maybe with hiding vars from logs?

this post was submitted on 14 Jan 2025
409 points (92.2% liked)

memes

21913 readers
2973 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 !politicalmemes@lemmy.world

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/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 3 years ago
MODERATORS