4 ms·
I've been playing around with galaxy all this week, already there's a ton of cool stuff. Ansible kind of sits between imperative and declarative, which gives a
by HeyImAlex 13y ago
I've been playing around with galaxy all this week, already there's a ton of cool stuff. Ansible kind of sits between imperative and declarative, which gives a lot of flexibility in how you merge together tasks to ultimately become idempotent. Finding just the right combination of commands is an art (I've seen some hacky playbooks), so having a way to grab something already built (and usually pretty polished) is awesome.
I kind of think of ansible as a language in itself. You're given these tools, basic declarative and imperative functions to execute on your system, conditionals, loops, variables, and from these things you build idempotent super-functions called roles. Galaxy is just package management for ansible libraries.
It's definitely not perfect (I'm not really in love with the way roles are laid out, a lot of boilerplate), and honestly I think something even more language like would be even better, but ansible is the best thing I've used so far.
- mpdehaan2 13y agoOne cool thing you can do with ansible-galaxy's CLI is initialize a role, so this may help, even if you aren't using Galaxy. ansible-galaxy init roles/rolename This will create the skeleton structure and stub out some of the basics.