mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-18 06:24:25 +02:00
Debug Variables Task Include
This task file (tasks/utils/debug/main.yml
) outputs key variables for troubleshooting Ansible roles and playbooks.
Purpose
Use this file to quickly debug and inspect variables such as application_id
, applications
, ports
, and more. It helps identify missing or misconfigured variables during playbook runs.
Usage
Include the debug file in any task list or role:
- import_tasks: utils/debug/main.yml
or
- include_tasks: utils/debug/main.yml
Optionally, enable it conditionally:
- import_tasks: utils/debug/main.yml
when: enable_debug | default(false)
Note: The path is relative to the directory of your task file.
This tool is intended for development and troubleshooting only. Remove or disable it in production runs.