Hacker Newsnew | past | comments | ask | show | jobs | submit | jamtan's commentslogin

We do have some fairly complex / real world examples within our ansible-examples repository. A hadoop cluster for instance ...

https://github.com/ansible/ansible-examples/tree/master/hado...

For a complex EC2 example, here's an openshift deployment ...

https://github.com/ansible/ansible-examples/tree/master/open...


well yes, but it is hard to learn from it. For comparison take a look at this - https://gist.github.com/marktheunissen/2979474 [pedantically_commented_playbook.yml]. NOTE: yes, I did note mpdehaan's comments that this yml is old. However being a beginner in Ansible, I learned a LOT from this.

The OpenShift example is a bit funny - I had asked this on the forums as well. For example the play to shut down a running cluster first attempts to idempotently launch it, causing the appropriate variables to set and then uses it to shut it down. There is another way to do it without doing this. Again, I'm not advocating approach A vs B - I just dont know which is The Right Way and why.

As I said, it is really really hard to learn non-trivial workflows in Ansible. I'm still plowing ahead, but I strongly suspect that is because Ansible has been getting all this support in HN and it is right now the flavor of the month.


Yeah, I don't think everyone shares that opinion, but I do agree we need a better index and a few more examples.

We're always working to improve examples however, and one of the things we're going to be adding is a lot of vertical guides that show some (especially provisioning) workflows from start to finish.

One of the things that is really going to help is the launch of Galaxy in the next few weeks, which is a web site for everybody to share roles, so you will have tons of easy ways to find bonus examples.

Thanks for feedback!


I use epdb because of it's ability to open a raw socket at a breakpoint with epdb.serve()

https://bitbucket.org/rpathsync/epdb


I like to get the best of both pip and the distro's native package manager ...

https://github.com/jordansissel/fpm


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: