Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by dastx on Thursday June 25, 2020 @02:58PM
(#23644189)
Can't say anything about this tool, but compared to ansible, bash is mostly fine. In my opinion ansible is a (and pardon my language) clusterf* of a tool compared to the alternatives. Certainly, if bash had the likes of inventories, roles and other features to make maintenance and reuse easier, I'd choose that over ansible.
[ Parent
| on HN ]
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by p_l on Thursday June 25, 2020 @03:18PM
(#23644406)
Ansible is writing bash scripts in YAML, templates using system that doesn't grok YAML and causes parsing errors due to whitespace, interpreted by schizophrenic Python that might be 2 or it might be 3.
... I guess pure bash might be better.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by partdavid on Thursday June 25, 2020 @07:31PM
(#23646989)
I have my issues with Ansible, and I'm really not a fan of "templated YAML"-based tools, which has been an unfortunate trend that's not limited to Ansible (GCDM and helm share this problem). But if you're writing a lot of bash scripts into your plays you're probably doing it wrong.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by pnutjam on Thursday June 25, 2020 @03:55PM
(#23644846)
you can run pure bash from ansible, either by copying a script or using the shell module:
examples:
both with sudo
ansible all -m shell -a "hostname" -b
ansible all -m script -a "script=/home/user/myscript.sh" -b
I love to throw together a quick inventory list and run adhoc ansible commands against a bunch of servers.