How ansible/ansible-examples works
This repository is a collection of Ansible playbook examples, not one deployed application. The principal workflow is an operator selecting and running a playbook to configure hosts; the examples cover application stacks, database and infrastructure setups, Windows, and Ansible language features. A separate Rust example implements an Ansible-style JSON module, and a Python example supplies a custom filter. The top-level README is generic, so links among unsampled playbooks and their roles are omitted rather than inferred.
Main entry points: main.rs Rust module · lamp_simple/site.yml Stack playbooks · lamp_haproxy/site.yml LAMP variants · wordpress-nginx/site.yml WordPress stacks
Components 15
Host deployments
- Stack playbooks
lamp_simple/site.yml - LAMP roles
lamp_simple/roles - LAMP variants
lamp_haproxy/site.yml - WordPress stacks
wordpress-nginx/site.yml - Tomcat stacks
tomcat-standalone/site.yml - JBoss stacks
jboss-standalone/site.yml - MongoDB sharding
mongodb/site.yml - Tomcat failover
tomcat-memcached-failover/site.yml - Windows stacks
windows/wamp_haproxy/site.yml
Ansible features
- Feature playbooks
language_features - Custom filter
language_features/filter_plugins/custom_plugins.py
Example modules
- Rust module
rust-module-hello-world/module-src/src/main.rs - JSON arguments
- JSON response
Other components
- Operator
Connections 12
- Operator → Stack playbooks: runs example
README.md - Operator → LAMP variants: runs example
README.md - Operator → WordPress stacks: runs example
README.md - Operator → Tomcat stacks: runs example
README.md - Operator → JBoss stacks: runs example
README.md - Operator → MongoDB sharding: runs example
README.md - Operator → Tomcat failover: runs example
README.md - Operator → Windows stacks: runs example
README.md - Operator → Feature playbooks: runs example
README.md - Operator → Rust module: runs module
- Rust module → JSON arguments: reads JSON
rust-module-hello-world/module-src/src/main.rs - Rust module → JSON response: prints JSON
rust-module-hello-world/module-src/src/main.rs