March 2019
Intermediate to advanced
412 pages
9h 49m
English
Playbook code is responsible for loading, parsing, and executing playbooks. The main entry point for playbook handling is playbook/__init__.py, inside of which lives the PlayBook class. A good starting point for debugging playbook handling is line 77:

Putting a breakpoint here will allow us to trace through finding the playbook file and parsing it. Specifically, by stepping into the self._loader.load_from_file() function call, we will be able to follow the parsing in action.
The PlayBook class load() function just does the initial parsing. Other classes within other directories are used for the execution of plays and ...
Read now
Unlock full access