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
- 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
- OpenStack - lorin
- Systems Configuration - cegeddin
Callbacks and Plugins
The Ansible project has a whole repo devoted to extending ansible with new connection types, logging/event callbacks, and inventory data storage. Talk to Cobbler and EC2, tweak the way things are logged, or even add sound effects.
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, and integrations with other interesting pieces of software.
- Ansible w/ Vagrant - dsander
- virt-install - skvidal
- rebooting hosts - skvidal
- Cobbler external inventory (demo) - mpdehaan
- 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
- Exploring Configuration Management With Ansible - Palamino DB -
- You Should Consider Using SSH Based Configuration Management - LShift Ltd
- Deploying Flask/uWSGI, Nginx, and Supervisorctl - mattupstate
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.