News for hackers. Stuff that matters.
Re:Replacing Ansible with salt-ssh by aloer on Thursday October 22, 2020 @03:30PM (#24862377)
Slightly OT:

I have recently done some scripting work on a single machine and used Ansible because it makes it so convenient to parse output, generate config files etc., mostly shell and jinja2

Is that valid use of Ansible or should I be ashamed and use something else?

Re:Replacing Ansible with salt-ssh by NateEag on Thursday October 22, 2020 @03:38PM (#24862463)
If the tool met your needs, why worry about shame?

If you eventually run into difficulties, sit down and understand why.

Once you've understood the cause of your problems, see whether the features you didn't take time to understand can alleviate them.

Re:Replacing Ansible with salt-ssh by chousuke on Thursday October 22, 2020 @03:45PM (#24862532)
Ansible is okay for stuff like that.

I very much don't like that it does the YAML-as-a-programming-language thing that's way too popular nowadays but when judiciously used, Ansible can be useful.

I really want something like Ansible with a real declarative programming language. Puppet is the closest nowadays to having a sane language, but it has its own issues.

Re:Replacing Ansible with salt-ssh by eeZah7Ux on Thursday October 22, 2020 @03:32PM (#24862401)
ashamed. Almost every programming language is better than a mashup of yaml and jinja
Re:Replacing Ansible with salt-ssh by sirtaj on Thursday October 22, 2020 @04:50PM (#24863150)
Writing plugins in Python is a great way to reduce the size/scope of yaml you have to write, particularly things like filter and vars plugins. You can then use yaml primarily as a data source rather than a programming language.