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:
@@ -15,6 +15,11 @@
|
|||||||
wol_detected_interface: "{{ ansible_default_ipv4.interface }}"
|
wol_detected_interface: "{{ ansible_default_ipv4.interface }}"
|
||||||
when: wol_interface | length == 0
|
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
|
- name: Validate detected interface is physical
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
wol_interface_final: "{{ wol_detected_interface }}"
|
wol_interface_final: "{{ wol_detected_interface }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user