This refactoring updates the Wake-on-LAN configuration to dynamically select modes based on system capabilities and removes unnecessary logic related to bridge mappings.
Refactored the Wake-on-LAN task to use more concise and readable loop variables and conditions, improving code clarity without altering its functionality.
This refactoring improves the efficiency of the Wake-on-LAN task by utilizing the `zip` function to process multiple network interfaces in parallel. This change enhances performance and allows WOL functionality when supported on multiple interfaces.
Refactored the code by removing unused commented-out debug tasks and updated the condition for enabling Wake-on-LAN feature to improve performance and reduce unnecessary operations.
Refactored the task processing logic to eliminate unnecessary debug statements and consolidate related conditional checks for improved readability and efficiency.
This commit refactors the task handling logic to utilize the `en_interfaces` module and includes a conditional check for non-empty lists, enhancing code readability and functionality.
This refactoring extracts the logic for handling Wake-on settings per network interface into a reusable task. It uses `set_fact` and loops to simplify the configuration process and improve readability.
This commit introduces a new feature that extracts and displays Wake-on values from the `wol_status` endpoint. This enhancement allows for better monitoring and management of device wake-up capabilities.
This commit introduces new debug tasks specifically for the `en_interfaces` and `wol_status` modules, enhancing the diagnostic capabilities of these functionalities.
Modified the regular expression to accurately capture wake-on status values that may include leading whitespace, ensuring proper parsing and validation.
This commit refactors the regex search functionality by replacing the existing method with `regex_findall`. Additionally, it adds a conditional check to ensure that `stdout` is defined before proceeding with the search operation.
This refactoring improves the readability of the interface filtering logic by utilizing the `dict2items` function, making the code more maintainable and easier to understand.
This refactoring updates the method for validating Wake-On-LAN (WOL) capabilities by utilizing the ethtool utility instead of a previous approach. This change improves accuracy and efficiency in determining WOL support for network interfaces.
This refactoring improves the structure and performance of the Wake-On-LAN (WOL) packet parsing task, enhancing both its readability and execution speed.
This refactoring improves the robustness of WOL (Wake-on-LAN) packet parsing by using `regex_findall` to ensure that only the first matching MAC address is extracted, enhancing reliability in various network environments.
This commit refactors the Wake-on-LAN (WOL) support logic to improve readability and maintainability. Additionally, it comments out the enable command as part of a larger refactoring effort.
This commit refactors the existing code for parsing Wake-on-LAN (WOL) status and introduces new functionality to enable WOL. The changes improve the clarity and efficiency of the WOL handling mechanism.
This feature introduces a new section in the build process that includes displaying Wake-On-LAN (WOL) status for each network interface. This allows users to easily monitor and manage WOL capabilities on their devices.
This refactoring improves the interface selection process and adds a loop to validate WOL (Wake-On-LAN) capabilities, enhancing system reliability and user experience.
This feature introduces a new task that allows users to view Wake-On-LAN (WOL) interfaces, enhancing the network management capabilities of the system.
Updated the code to utilize `ansible_facts.interfaces` for selecting network interfaces that start with 'en', improving readability and maintainability.
This feature introduces a new task that filters and processes interfaces whose names begin with the prefix 'en'. This enhancement allows for more targeted and efficient handling of specific interface types within our application.
Refactor the debug message in the playbook to use Jinja2 syntax for displaying `ansible_facts.interfaces`. This ensures that the output is more readable and consistent with other debug messages.
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.
The new playbook automates the setup of WOL on specified network interfaces, including gathering facts, identifying capable interfaces, mapping bridges to physical NICs, enabling WOL, and persisting configuration with udev rules. It also includes reporting and verification steps.
This refactoring improves the organization of tasks by using dedicated handlers for reloading udev rules and triggering network events, enhancing code readability and maintainability.