Skip to Main Content
Mastering Ansible
book

Mastering Ansible

by Jesse Keating
November 2015
Intermediate to advanced content levelIntermediate to advanced
236 pages
4h 42m
English
Packt Publishing
Content preview from Mastering Ansible

Debugging code execution

Sometimes logging and inspection of variable data is not enough to troubleshoot a problem. When this happens, it can be necessary to dig deeper into the internals of Ansible. There are two main sets of Ansible code: the code that runs locally on the Ansible host, and the module code that runs remotely on the target host.

Debugging local code

The local Ansible code is the lion's share of the code that comes with Ansible. All the playbook, play, role, and task parsing code live locally. All the task result processing code and transport code live locally. All the code except for the assembled module code that is transported to the remote host lives locally.

Local Ansible code can be broken down into three major sections: inventory, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Automating with Ansible

Automating with Ansible

Sander van Vugt

Publisher Resources

ISBN: 9781784395483Supplemental Content