4 ms·
Ansible is a lot more than just "YAML to Bash". For instance, Bash scripts are not idempotent. Ansible playbooks are. Sure, you can hack together a way to ssh a
by udev4096 2y ago
Ansible is a lot more than just "YAML to Bash". For instance, Bash scripts are not idempotent. Ansible playbooks are. Sure, you can hack together a way to ssh and run commands very easily but it will break at some point
- p_l 2y agoAnsible playbooks are as idempotent as bash scripts. You need to include checks when writing them so they actually are idempotent, just like with bash script, and they happily leak idempotency-breaking details like "restarting a service" works only if a) service currently runs b) because "restart" is a command, not expected state of "the service was restarted and is now running
- bigstrat2003 2y agoBash scripts are as idempotent as you want to make them, so I think the comparison holds.
- udev4096 2y agoIf it were that easy, no one would be using Ansible