http://ansible.github.com/moduledev.html
Curious if folks think this makes sense or not.
I’ll make some edit passes tomorrow.
The example is a bit contrived but was trying to show something that covered all the major use cases
handling input
idempotence and change handlers
handling errors
etc
The examples are Python just because we want folks to build modules the are useful for the core, and those are Python.
There’s also some calls to action at the bottom about a ansible-contrib repo (doesn’t exist yet, let’s start one) and how to get modules into the core. Once there is a contrib repo I’ll update these docs to suggest folks who want to contribute to ansible-contrib can just send pull requests, and we’ll bring things into the core once they’re successful in contrib.
See also the ‘conventions’ section about making modules that fit in well with the others.
–Michael