Posts

Ansible Source Code Debugging

 For Debugging the source code I have used version - 2.13 24/Jan/2023 - Trying to reverse engineer Ansible command line. In the source code the entrypoint for Ansible command line is in lib/ansible/cli/adhoc.py This class inherited from class CLI which is __init__.py file. The first call is made to  AdHocCLI.cli_executor(args) It uses display class to handle v, vv, vvv options as well as warn and error messages. Upon investigating the file, there are several reference to constants, example  C.COLOR_ERROR however they are nowhere to be seen in the source code. The trick is they use var() variable to export all the constant variable. Still need to do debug how exactly the default values are set. 

AWS Network decision tree

Image
 

Python Code for Schedule based event

Image