feat : Add task to detect physical NICs with WOL support using Ansible facts
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s

This commit introduces a new task in the Ansible playbook to identify physical network interface cards (NICs) that support Wake-on-LAN (WOL). This enhancement allows for more precise configuration and management of network devices.
This commit is contained in:
2025-12-24 09:26:42 +01:00
parent 69594b54ed
commit bd00040e0d

View File

@@ -8,6 +8,22 @@
state: present
update_cache: true
# ============================================================
# Detect physical NICs with WOL support using Ansible facts
# ============================================================
- name: Gather network interface facts
ansible.builtin.setup:
gather_subset:
- network
when: ansible_facts.interfaces is not defined
- name: Display WOL status per interface
ansible.builtin.debug:
msg: >
ansible_facts.interfaces
# # ============================================================
# # Normalize and validate configuration
# # ============================================================