Commit Graph

66 Commits

Author SHA1 Message Date
95c1cd5312 refactor ♻️: Refactor debug output to include wol_enabled results
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Updated the debug output to display the status of `wol_enabled`, enhancing visibility and troubleshooting capabilities.
2025-12-26 08:28:43 +01:00
7c9d61cbe5 feat : Add WOL status check and display feature
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This commit introduces a new feature that allows users to check and display the Wake-on-LAN (WOL) status for their network interfaces.
2025-12-26 08:25:27 +01:00
c35ff62880 refactor ♻️: Refactor task to extract Supports Wake-on per interface using set_fact and loop.
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
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.
2025-12-26 08:04:06 +01:00
c3aa02447c refactor ♻️: Refactor regex patterns for better multiline matching and readability
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Updated regex patterns to enhance their ability to handle multiline strings and improved overall code readability.
2025-12-26 07:58:52 +01:00
1b96934164 fix 🐛: Fix typo in variable name
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Corrected a typo in the variable name 'rsults' to 'results' throughout the codebase.
2025-12-26 07:48:37 +01:00
4205a8fc8b fix 🐛: Fix typo in variable names for wol_status results
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Corrected typos in variable names to ensure accurate handling of `wol_status` results.
2025-12-26 07:46:40 +01:00
114ca5af88 feat : Add task extraction and display of Wake-on values
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
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.
2025-12-26 07:41:31 +01:00
4ecc0d10f8 feat : Add debug tasks for en_interfaces and wol_status
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This commit introduces new debug tasks specifically for the `en_interfaces` and `wol_status` modules, enhancing the diagnostic capabilities of these functionalities.
2025-12-26 07:30:06 +01:00
ce888ccf84 fix 🐛: Update regex to match wake-on status with leading whitespace
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Modified the regular expression to accurately capture wake-on status values that may include leading whitespace, ensuring proper parsing and validation.
2025-12-26 07:18:30 +01:00
6e8a9d7631 refactor ♻️: Refactor regex search to use regex_findall and add condition to check if stdout is defined
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
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.
2025-12-26 07:10:05 +01:00
5f34c4e959 refactor ♻️: Refactor shell and debug tasks to use ansible.builtin modules
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Updated the shell and debug tasks to utilize `ansible.builtin` modules, enhancing compatibility and improving code clarity.
2025-12-26 07:07:30 +01:00
7a4c9c1583 refactor ♻️: Refactor task display to include WoL status with loop and default output
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Updated the task display logic to include the Wake-on-LAN (WoL) status using a loop, ensuring a more comprehensive and dynamic output.
2025-12-26 07:00:23 +01:00
c3c783cec9 fix 🐛: Update wol_status message to include .stdout
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Modified the `wol_status` function to include the standard output in its message, ensuring more comprehensive status information is provided.
2025-12-26 06:55:29 +01:00
d4b3c31c8e refactor ♻️: Refactor debug message to use wol_status variable
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Updated the debug message to directly utilize the `wol_status` variable, improving readability and reducing redundancy.
2025-12-26 06:49:45 +01:00
dbdf1908e7 refactor ♻️: Simplify interface filtering with regex and streamline task logic.
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 8s
Refactored the interface filtering process by simplifying the regex pattern and optimizing the task handling to improve performance and readability.
2025-12-26 06:47:31 +01:00
756e39a498 refactor ♻️: Refactor interface filtering to use dict2items
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This refactoring improves the readability of the interface filtering logic by utilizing the `dict2items` function, making the code more maintainable and easier to understand.
2025-12-26 06:42:46 +01:00
263d061cb1 refactor ♻️: Refactor WOL capability validation to use ethtool
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
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.
2025-12-26 06:30:58 +01:00
01895c78c3 refactor ♻️: Refactor WOL parsing task for better readability and efficiency
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 8s
This refactoring improves the structure and performance of the Wake-On-LAN (WOL) packet parsing task, enhancing both its readability and execution speed.
2025-12-25 21:57:40 +01:00
40f25bbd53 refactor ♻️: Refactor regex and filter logic for Wake-on state extraction
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 9s
Updated regular expression patterns and filtering mechanisms to more accurately extract the Wake-on state from system logs.
2025-12-25 21:50:06 +01:00
670021fcc8 refactor ♻️: Refactor WOL parsing logic
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 9s
Updated WOL parsing to use `select` and `join` for guaranteed matches, improving reliability.
2025-12-25 21:45:03 +01:00
5fd69e4ad7 refactor ♻️: Refactor WOL parsing to use regex_findall and extract the first match
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 9s
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.
2025-12-25 21:41:16 +01:00
f6d35d0abb refactor ♻️: Refactor Wake-on-LAN support logic and comment out the enable command
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 15s
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.
2025-12-25 21:30:57 +01:00
c52fb6c563 refactor ♻️: Refactor task parsing logic
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Updated the task parsing algorithm to handle WOL support and state more robustly, ensuring accurate task management.
2025-12-24 10:59:04 +01:00
672d0457fe refactor ♻️: Refactor WOL status parsing and add Wake-on-LAN enabling logic
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
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.
2025-12-24 10:55:15 +01:00
1112e01cbf refactor ♻️: Refactor WOL status extraction to handle multiple matches safely.
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
This refactoring improves the handling of multiple matches in the WOL status extraction process, ensuring more robust and reliable results.
2025-12-24 10:48:26 +01:00
3125c4f230 refactor ♻️: Rename 'wol_capabilities_check' to 'wol_check'
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
Refactored the function name and updated all references throughout the codebase to maintain consistency and improve readability.
2025-12-24 10:44:45 +01:00
fb14e6701b feat : Add WOL status display per interface
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
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.
2025-12-24 10:40:31 +01:00
b7f743021f refactor ♻️: Refactor task names and conditions for better clarity and functionality
This refactoring improves the readability and logic of task management by renaming variables and simplifying conditional statements.
2025-12-24 10:32:25 +01:00
4c20e2a7ae refactor ♻️: Refactor debug message handling
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
Updated the debug message logic to support multiple interfaces, improving flexibility and maintainability.
2025-12-24 10:28:24 +01:00
91de8a4fa9 refactor ♻️: Refactor interface selection and add loop for WOL capability validation
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
This refactoring improves the interface selection process and adds a loop to validate WOL (Wake-On-LAN) capabilities, enhancing system reliability and user experience.
2025-12-24 10:23:57 +01:00
a9fdcd6f56 refactor ♻️: Refactor WOL validation with ethtool command
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
Removed old WOL validation logic and implemented new functionality using ethtool to detect interfaces and display capabilities.
2025-12-24 10:10:02 +01:00
b797877b32 feat : Add task to display WOL interfaces
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 9s
This feature introduces a new task that allows users to view Wake-On-LAN (WOL) interfaces, enhancing the network management capabilities of the system.
2025-12-24 09:50:39 +01:00
32562bf16a refactor ♻️: Refactor task to use ansible.builtin.set_fact for clarity
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 9s
Updated the task to use `ansible.builtin.set_fact` instead of a custom module for better readability and maintainability.
2025-12-24 09:48:10 +01:00
d351ef134e refactor ♻️: Refactor network interface selection to use ansible_facts.interfaces
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Updated the code to utilize `ansible_facts.interfaces` for selecting network interfaces that start with 'en', improving readability and maintainability.
2025-12-24 09:47:17 +01:00
6a873433f1 feat : Add task to filter interfaces starting with 'en'
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
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.
2025-12-24 09:45:10 +01:00
fda4d88c81 chore 📦: Update debug message to display ansible_facts.interfaces
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 10s
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.
2025-12-24 09:40:27 +01:00
22bd83b467 chore 📦: Remove unused code from tasks/main.yml
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 9s
Cleaned up unnecessary code to reduce file size and improve readability.
2025-12-24 09:27:44 +01:00
bd00040e0d 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.
2025-12-24 09:26:42 +01:00
69594b54ed feat : Add Ansible playbook for configuring Wake-on-LAN (WOL)
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 14s
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.
2025-12-24 09:23:09 +01:00
d43c413e0d style 💎: Fix indentation in tasks/main.yml for notify section
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
ansible-lint / Ansible Lint (pull_request) Successful in 10s
Corrected the indentation of the 'notify' section within the `tasks/main.yml` file to ensure proper syntax and readability.
2025-12-24 08:00:58 +01:00
e5e4a07740 refactor ♻️: Refactor task to use handlers for reloading and triggering udev rules
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
This refactoring improves the organization of tasks by using dedicated handlers for reloading udev rules and triggering network events, enhancing code readability and maintainability.
2025-12-24 07:59:35 +01:00
8c1f0b14d2 fix 🐛: Fix typo and add condition for bond0 backing
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This commit fixes a typo in the `update_cache` value and adds a conditional check to ensure proper handling of `bond0` backing.
2025-12-24 07:37:56 +01:00
0c3279af92 docs 📝: Update README.md for improved interface detection and troubleshooting guidance
Updated the README.md file to include detailed instructions on how to improve interface detection, add Ansible facts-based validation, and enhance troubleshooting guidance.
2025-12-24 07:07:13 +01:00
71bd365483 refactor ♻️: Refactor regex and filter logic for cleaner bridge link extraction
This refactoring improves the efficiency and readability of the regex patterns used for extracting bridge links by simplifying the filter logic.
2025-12-23 22:22:40 +01:00
e9befb965d refactor ♻️: Refactor task logic for detecting and reporting Wake-on-LAN interfaces, remove redundant debug tasks.
This commit refactors the task logic to improve the detection and reporting of Wake-on-LAN interfaces. It also removes redundant debug tasks to clean up the codebase.
2025-12-23 22:19:24 +01:00
c4c786f19b refactor ♻️: Refactor loop for improved readability and efficiency
This refactoring improves the readability and efficiency of the loop by simplifying the logic and reducing redundant operations.
2025-12-23 22:14:22 +01:00
aa5615533e fix 🐛: Fix typo in file permissions
Corrected a minor typo in the file permission settings, ensuring proper access control.
2025-12-23 22:10:05 +01:00
6cd75b5b8d docs 📝: Refactor README.md with detailed features, role variables, and usage examples.
Updated the README to provide comprehensive information on the Ansible Proxmox WOL role's features, variables, and usage examples.
2025-12-23 22:06:51 +01:00
7a388c1d55 refactor ♻️: Remove redundant task for detecting physical NIC
This refactoring removes a redundant task that was previously used to detect physical network interfaces, simplifying the codebase and improving performance.
2025-12-23 21:34:22 +01:00
f087eaf5cd refactor ♻️: Refactor task to detect physical NIC backing vmbr0 and update regex for extraction
This commit refactors the task logic to accurately detect the physical NIC backing vmbr0 and updates the regular expression used for extracting relevant information. This ensures more precise and reliable network configuration management.
2025-12-23 21:31:41 +01:00