Commit Graph

77 Commits

Author SHA1 Message Date
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
3f61c1c48a refactor ♻️: Extract and select physical NIC candidates for wol_bridge
Refactored the task to improve code organization and clarity by extracting the process of selecting physical NIC candidates for the wol_bridge feature. This change enhances maintainability and readability.
2025-12-23 21:24:47 +01:00
5f80e247ec feat : Add task to display bridge_links
This commit introduces a new feature that allows the display of `bridge_links` in the application. This enhancement provides users with additional information and functionality related to bridge links.
2025-12-23 21:14:36 +01:00
49d61d5cd5 refactor ♻️: Refactor regex and add debug info
Refactored the regular expression to improve pattern matching and added debug information for better traceability in the `tasks/main.yml` file.
2025-12-23 21:11:21 +01:00
908571b92d refactor ♻️: Refactor task to dynamically detect physical NIC backing a bridge, excluding tap and fw interfaces.
This refactoring updates the task logic to dynamically identify the physical network interface card (NIC) backing a bridge, while excluding interfaces of types tap and fw. This change enhances the flexibility and accuracy of network configuration detection.
2025-12-23 20:52:54 +01:00
963b0dff6a refactor ♻️: Refactored Wake-on-LAN task for specific bridge interface
Renamed `wol_interface` to `wol_bridge`, updated comments, and refactored task using `bridge link show` and `ethtool`. Added udev rules for persistence and set `Restart=always` for the service.
2025-12-23 20:42:03 +01:00
ebc947ce9d fix 🐛: Fix typo in variable name
Corrected the typo 'wol_detected_bridge' to 'wol_detected_interface' to ensure accurate variable naming and functionality.
2025-12-22 17:25:23 +01:00
6de00262a6 chore 📦: Comment out debug facts task in tasks/main.yml
This commit removes the debug facts task from the main.yml file to clean up unnecessary logging and streamline the execution process.
2025-12-21 21:43:37 +01:00
724d67982a refactor ♻️: Refactor handler to reload systemd and restart WOL service.
This commit refactors the handler to include functionality for reloading systemd and restarting the Wake-on-LAN (WOL) service, improving system management capabilities.
2025-12-21 21:40:27 +01:00
7f86cae2ed refactor ♻️: Refactor task to detect physical NIC enslaved to bridge and add debug facts
This refactoring improves the task by detecting which physical network interface card (NIC) is enslaved to a bridge and adds debug facts for better visibility during execution.
2025-12-21 19:47:24 +01:00
8af1f7fd12 refactor ♻️: Refactor task to detect physical NIC behind bridge
This refactoring involves restructuring the code to improve the detection mechanism for identifying the physical network interface card (NIC) that lies behind a bridge. The changes enhance the accuracy and efficiency of the task, making it more reliable in various network configurations.
2025-12-21 18:58:06 +01:00
e531859ead refactor ♻️: Refactor debug tasks for WoL interface selection
Removed redundant debug tasks and added a new task specifically for selecting the WoL interface.
2025-12-21 18:49:25 +01:00
ae7ed6a894 refactor ♻️: Refactor task logic for detecting and validating physical NICs enslaved to a bridge
This commit refactors the task logic to include detection and validation of physical NICs enslaved to a bridge, selects the final WoL interface, and updates debug and failure messages accordingly. It also adds variables for detected bridge and PHY in `defaults/main.yml`.
2025-12-21 18:23:12 +01:00
000c0749a3 refactor ♻️: Remove conditional debug task for default route
Refactored the routing configuration to remove a conditional debug task that was unnecessary for the default route, simplifying the code and improving performance.
2025-12-21 14:50:50 +01:00
918caea5f5 feat : Add debug task to log detected default route interface
Introduce a new debug task that logs the detected default route interface, enhancing network diagnostics and troubleshooting capabilities.
2025-12-21 14:47:36 +01:00
efd44fcbc8 feat : Add support for Wake-on-LAN
Enables Wake-on-LAN by setting `wol_interface` to an empty string and enables MAC address reporting.
2025-12-14 21:28:45 +01:00
9bef606607 feat : Enable Wake-on-LAN persistently
This commit introduces persistent Wake-on-LAN support for Proxmox VE via Ansible. It includes YAML configuration options for the interface, verification, and systemd service management, ensuring reliable functionality after Ansible role execution. The changes also address ignoring outputs and temporary files for a cleaner setup.
2025-12-14 20:46:32 +01:00