feat : Add debug task to log detected default route interface

Introduce a new debug task that logs the detected default route interface, enhancing network diagnostics and troubleshooting capabilities.
This commit is contained in:
2025-12-21 14:47:36 +01:00
parent efd44fcbc8
commit 918caea5f5

View File

@@ -15,6 +15,11 @@
wol_detected_interface: "{{ ansible_default_ipv4.interface }}"
when: wol_interface | length == 0
- name: Debug default route interface
ansible.builtin.debug:
msg: "Detected default route: {{ wol_detected_interface }}"
when: wol_interface | length == 0
- name: Validate detected interface is physical
ansible.builtin.set_fact:
wol_interface_final: "{{ wol_detected_interface }}"