From bd00040e0d644d6738c0d62fb41df4df0f86bef2 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 24 Dec 2025 09:26:42 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20task=20to=20detect=20?= =?UTF-8?q?physical=20NICs=20with=20WOL=20support=20using=20Ansible=20fact?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 014b19e..d4a199d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 # # ============================================================