Skip to content

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

  1. CLI Deep Diveansible, ansible-playbook, ansible-config, ansible-doc, ansible-console, ansible-galaxy, ansible-vault
  2. Inventory — static and dynamic inventory, INI and YAML formats, cloud inventory plugins, groups and patterns
  3. Variables and Precedence — every variable source and the full precedence order, visualized
  4. ansible.cfg — every major setting, search order, and performance-relevant tuning
  5. Playbooks — every keyword: tasks, handlers, blocks, loops, conditionals, strategy, delegation, tags
  6. Roles — role structure, Galaxy layout, and reusable role architecture
  7. Collections — why collections were introduced, namespaces, versioning, dependencies
  8. 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.cfg instead 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.