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 # # ============================================================