News for hackers. Stuff that matters.
Re:Ansible Simply Kicks Ass by StavrosK on Wednesday July 03, 2013 @09:51AM (#5984458)
The only weak point Ansible has is that its documentation doesn't show enough real-life scenarios. Fortunately, it's really easy to grok and extend when you see a script, so I wrote this to help:

http://www.stavros.io/posts/example-provisioning-and-deploym...

Re:Ansible Simply Kicks Ass by mpdehaan2 on Wednesday July 03, 2013 @09:58AM (#5984496)
I agree, we need to fold more playbook examples into the docs for sure.

Folks might be interested in checking out http://github.com/ansible/ansible-examples for some full-stack use cases showing playbooks that we do have.

Re:Ansible Simply Kicks Ass by georgebashi on Wednesday July 03, 2013 @11:29AM (#5985162)
I've just picked up ansible, and one thing I found lacking was an example ansible repository with a standard directory layout and config documented on the site or on github. For example, it's not obvious from the docs that a nice way to set things up is:

    site.yml
    ansible.cfg
    hosts
    host_vars/*
    group_vars/*
    roles/*/{files,templates,tasks,handlers,vars}
Re:Ansible Simply Kicks Ass by mpdehaan2 on Wednesday July 03, 2013 @11:34AM (#5985211)
Have you seen http://www.ansibleworks.com/docs/bestpractices.html ?

Just noticed these don't mention "vars" in the roles directory, do need to fix that :)

Re:Ansible Simply Kicks Ass by georgebashi on Wednesday July 03, 2013 @11:38AM (#5985242)
I hadn't, doh! Thanks. Might be worth adding a link to that at start of the docs, because I found I was hesitant to start writing yamls without knowing the "right" structure for them.
Re:Ansible Simply Kicks Ass by StavrosK on Wednesday July 03, 2013 @10:02AM (#5984525)
Oh, thanks, that wasn't there when I started using Ansible. I'll take a look at those, they look very well structured, and very reusable.
Re:Ansible Simply Kicks Ass by jeromeparadis on Wednesday July 03, 2013 @11:11PM (#5988984)
These sound awesome. Any pointers on how to modify these for Ubuntu machines?