4 ms·
> ... maybe, Ansible should consider not using yaml for absolutely everything. Maybe. But what problems with Ansible are you trying to solve by using addition
by Jedd 9y ago
> ... maybe, Ansible should consider not using yaml for absolutely everything.
Maybe. But what problems with Ansible are you trying to solve by using additional, and perhaps domain specific, languages?
I haven't used Ansible, but I do use SaltStack, which also relies on YAML, and also uses Jinja, hence my interest here.
SaltStack, and I'm assuming Ansible can do this too, will happily use whatever you want, even raw python, as state (configuration) files, so long as they can generate yaml.
This is not as inelegant as it sounds :) -- it means configuration length & complexity can be represented by (or hidden behind) short, palatable algorithms.
As soon as the suggestion is made to introduce yet another DSL to a system, you end up with holy wars about which one, and then a total mess trying to integrate and support both.
Anyway, if you don't want to use YAML / Jinja, then eschew SaltStack, Ansible etc in favour of Chef, Puppet, SCCM, etc.
- mattbillenstein 9y agoYou can use mako in salt, I haven't had any issues with it at all.
- the_mitsuhiko 9y agoMako and Jinja (until this release) really did not differ all that much with regards to this feature. However the ansible community outlined enough reasons for why they are interested in this.