feat ✨: Add task to detect physical NICs with WOL support using Ansible facts
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
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:
@@ -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
|
||||
# # ============================================================
|
||||
|
||||
Reference in New Issue
Block a user