Volume 3: Core Internals & Python Architecture¶
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 Volumes 1-2.
Who This Volume Is For¶
Engineers who already write playbooks (Volume 2) and now want to know what actually happens between typing ansible-playbook site.yml and a task reporting changed. This is where "how do I use it" becomes "how does it actually work."
Prerequisites¶
Volume 1: Fundamentals & History and Volume 2: Playbooks, Roles & Collections.
Chapters¶
- Internal Architecture — control node, managed node, the Task Queue Manager, forks, and the execution engine's components
- How Ansible Actually Executes — a full trace of
ansible all -m ping, from CLI to JSON return to cleanup - Why Python? — why remote Python is required, interpreter discovery, and what happens when it's missing
- Source Code Tour — a guided walk through the
ansible-corePython package structure
What You Will Be Able to Do After This Volume¶
- Explain, precisely, every step between running a command and a managed host reporting back
- Diagnose interpreter-discovery and connection-plugin failures instead of treating them as black boxes
- Navigate the
ansible-coresource tree well enough to find where a given behavior is implemented
Next¶
Continue to Volume 4: Enterprise Automation Platform (AAP), or Volume 5: Developing Modules, Plugins & Contributing if you're heading straight into extending Ansible.