I want to print a registered object inaccessible for debugging assistance. How to do it?
You need to use with_dict and var = in the debug statement:
- tasks: - name: build web node nova_compute: arguments: xyz register: os_web_node - debug: var={{ item }} with_dict: os_web_node
You also have to_nice_yaml, andto_nice_json if you want to control the format itself. More details here .
to_nice_yaml
to_nice_json