Re:Interesting Uses of Ansible's ternary filter
by xienze on Thursday February 22, 2024 @07:44AM
(#39466282)
Most of that is the embedded templating/scripting system (the stuff between {{}}), not YAML itself.
[ Parent
| on HN ]
Re:Interesting Uses of Ansible's ternary filter
by zufallsheld on Thursday February 22, 2024 @07:50AM
(#39466335)
Well, that's Jinja. And arguably not a bad tool, but not the best for the use-case of config-management.
Re:Interesting Uses of Ansible's ternary filter
by kunley on Thursday February 22, 2024 @07:56AM
(#39466391)
Yeah, I just have this sentiment wishing that Ansible's author used own-crafted format. HashiCorp used their own and suddenly in this case no one says "yaml should be everywhere because it's everywhere already".
In a similar mood, I wished Kubernetes was staying every from yaml. Even mentioned HCL would be better (although it's not perfect)
Re:Interesting Uses of Ansible's ternary filter
by kunley on Thursday February 22, 2024 @07:52AM
(#39466357)
Yes but the task names and parameters try to mimic natural language, like assert: that:, so you're supposed to read it as a whole, and it quickly turns into an abomination, with one syntax (yaml) for the structure and another (jinja) for values and conditions