ansible-module-dev

Walkthrough located at Ansible.