4 ms·
Ansible needs a working Python interpreter on the target machine. Pyifra doesn't even need that. Just needs a shell. Subjective opinion but it is heavily unde
by wg0 3y ago
Ansible needs a working Python interpreter on the target machine.
Pyifra doesn't even need that. Just needs a shell.
Subjective opinion but it is heavily under recognized piece of software.
Ansible is really great but you soon end up writing Python in Yaml strings.
So why not straight up Python?
- mdaniel 3y agoAs an FYI, "needs" is not correct, it has `raw:` for doing anything the target interpreter understands (sh, bash, powershell, etc), which can then include actually provisioning beefier interpreters (full blown python, pypy, whatever) Ansible plugins can be written in any language, shell, compiled binaries, whatever, and communicate with the control plane via stdin/stdout I suspect you are thinking of Jinja2 when you are writing python in yaml strings, which ... kind of, I guess, but also confusingly not Python, or at least the hacked up copy of Jinja2 that ansible uses can't do all the fun things normal Jinja2 can