README.md |
Ansible Resources
User contributed playbooks, modules, and articles. This is a small curated list, but growing. Everyone is encouraged to add to this document, submit a pull request at http://github.com/ansible/ansible-resources.
Ansible Modules
Ansible modules are a way of adding new client-side logic to ansible. They can be written in any language.
- Official "core" ansible modules - various
- mercurial - bradobro
- zypper (bash module example) - jp_mens
- lineinfile - azemon
- homebrew - swehack
Python modules using 0.6 and later can use the common "AnsibleModule" class to dramatically reduce the amount of boilerplate code required. Not all modules above yet take advantage of this feature. See the official documentation for more details.
Selected Playbooks
Playbooks are ansible's configuration management language. It should be easy to write your own from scratch for most applications, but it's always helpful to look at what others have done for reference.
- Hadoop - jkleint
- LAMP - Four Kitchens
- Ganglia (demo) - mpdehaan
- Nginx - cocoy
Scripts
Ansible isn't just a program, it's also an API. Here's some examples of some clever integrations with the "Runner" and also Playbook APIs.
- virt-install + Ansible provisioning - skvidal
- rebooting hosts - skvidal
- EC2 external inventory - pas256
- Cobbler external inventory (demo)
- uptime (API demo) - mpdehaan
Blogs & Articles
- HighScalability.com - mpdehaan
- ColoAndCloud.com interview - mpdehaan
- dzone - Mitch Pronschinske
- Configuration Management With Ansible - jp_mens
- Shell Scripts As Ansible Modules - jp_mens
- Ansible Facts - jp_mens
- Infrastructure as Data - cocoy
- Ansible Pull Mode - cocoy
Disclaimer
Modules and playbooks here may not be using the latest in Ansible features. When in doubt to the features of a particular version of Ansbile, always consult ansible.github.com and in particular see Best Practices for some tips and tricks that may be useful.
Ansible is (C) 2012, Michael DeHaan and others and is available under the GPLv3 license. Content here is as specified by individual contributors.