by matt4077 · 10y ago · 0 comments
So let me rant about it for a bit:
- Whatever that language is, it's not something invented on earth. I've given up on learning when to use quotes or how it wants its indentations and just copy&paste&destroy everything&restart when it doesn't work after 15 minutes.
- There are a few thousands tests in their test suite, which makes it quite a feat to introduce a bug that breaks what amounts to "passing variables to a subroutine": https://github.com/ansible/ansible/issues/17356. (2 hours today I won't get back). I seriously don't know any other software where I spend most of my time reading through github issues.
- It's a tool to manage hosts. Which would make me think that "reboot" shouldn't be a dirty word. But there's actually no function to do (a) ```/bin/sh reboot```, (b) wait for it to come back. First request I found is four years old: https://github.com/ansible/ansible/issues/513. The current request has a nice summary of the cottage industry of "blog articles that explain how to reboot & wait": https://github.com/ansible/ansible/issues/16186
- Projects are structured in a quite "sparse" folder structure. A small project usually has 25 files in 20 folders and 18 of them are "main.yml" which is probably a conspiracy to annoy me. The main feature an editor plugin for ansible needs is not syntax highlighting but "use second-to-last folder name instead of filename on tabs".
-
- YAML is not a proper programming language
- It's not easy to create reusable "functions". You can include tasks but it can be painful to manage variables, you can depend on roles but everything ends up in separate folders and files.
In retrospect I would prefer to just use Fabric, or use Ansible modules through Python.
If you want to configure your hosts using a programming language, just use shell scripts.
--
edit: the acronym has been changed to 'YAML Ain't Markup Language', to separate it from documentation languages
Ha! I've found myself doing that with Ansible way more than anything else we use. We've been using it since early 1.x and it's been rather buggy sometimes, but in general it's really great and I'm glad we went with it over the alternatives. New features have been coming fast that have made it worth the occasional bug.
Also, if you used the same step in two different puppet manifests, it would totally freak out and refuse to run, even if the invocations were identical. I got the feeling that Puppet is for giant enterprise environments with automated agents everywhere, and Ansible is better suited for admin-driven runs.
What made you think it is? It's not. It's somebody's application deployment script that grew too big and started being marketed as a universal tool. For managing servers its very architecture is too brittle.
CFEngine and Puppet are universal tools for managing hosts, though they don't work in (sometimes needed) synchronous manner, like well-prepared RPC daemon would.
Chef has caught up, it still needs the agent but chef-zero [1] makes solo deploying much easier.