> Ansible and YAML
I am searching for an replacement of / alternative to Ansible written in Go or Rust that uses JSON or INI as config format.
(Ansible is written in Python. Both Python and YAML rely on outline indentation which causes many headaches)
However I have also learned the following:
- in python, parsing yaml file is hundred times slower than json (in fact, my benchmark was showing around 400x slowdown). Therefore you can't really use it in cases where performance matters at least a little bit. A yaml 1k line yaml can load more than half a second (yrmv)
- if your yaml doc is longer than two screens, it loses its readability benefits.
Therefore it is best to use a whole directory of yaml files, each describing a specific feature. E.g. Ansible is a good example of how to use yaml files.