Volume 2: Playbooks, Roles & Collections¶
Volume status
This volume is at the outline stage. Each chapter below has its structure and scope defined; full prose is being written chapter by chapter after Volume 1.
Who This Volume Is For¶
Readers who understand why Ansible exists (Volume 1) and now need to actually build and organize real automation: inventories, variables, playbooks, reusable roles, and shareable collections.
Prerequisites¶
Volume 1: Fundamentals & History — particularly the declarative/idempotency mental model and a working Ansible install.
Chapters¶
- CLI Deep Dive —
ansible,ansible-playbook,ansible-config,ansible-doc,ansible-console,ansible-galaxy,ansible-vault - Inventory — static and dynamic inventory, INI and YAML formats, cloud inventory plugins, groups and patterns
- Variables and Precedence — every variable source and the full precedence order, visualized
- ansible.cfg — every major setting, search order, and performance-relevant tuning
- Playbooks — every keyword: tasks, handlers, blocks, loops, conditionals, strategy, delegation, tags
- Roles — role structure, Galaxy layout, and reusable role architecture
- Collections — why collections were introduced, namespaces, versioning, dependencies
- Galaxy — publishing, installing, requirements files, semantic versioning, signing
What You Will Be Able to Do After This Volume¶
- Write a production-shaped playbook using roles and collections rather than one giant flat file
- Reason confidently about which of a dozen possible sources set a given variable's final value
- Read and tune
ansible.cfginstead of copy-pasting a stranger's config - Publish and consume content from Ansible Galaxy correctly, with version pins
Next¶
Continue to Volume 3: Core Internals & Python Architecture.