Commit Graph

109 Commits

Author SHA1 Message Date
a82bd5bac5 refactor ♻️: Refactor task management by removing unused task and adjusting pause duration.
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 10s
This commit refactors the task management system by removing an unused task and adjusting the pause duration to ensure consistent behavior across different environments.
2026-01-25 09:08:09 +01:00
44f9c8ffa9 refactor ♻️: Refactor WOL task to use localhost
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
This commit refactors the existing WOL task by commenting out the original implementation and adding a new one that sends a Wake-on-LAN packet from localhost.
2026-01-25 09:00:53 +01:00
d509a4946e refactor ♻️: Remove unnecessary delegate_to: localhost from WOL tasks
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
Refactored WOL task configuration by removing redundant 'delegate_to: localhost' directive to simplify and improve readability.
2026-01-25 08:59:22 +01:00
f2ead2ad47 feat : Add task to install wakeonlan and send WOL packets
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This commit introduces a new feature that includes adding a task to install the `wakeonlan` package and sending Wake-on-LAN (WOL) packets. This allows for remote control of devices by waking them up from a powered-off state.
2026-01-25 08:57:07 +01:00
af4c561b3d feat : Add pause before sending Wake-on-LAN packet
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
This feature introduces a delay before sending a Wake-on-LAN (WoL) packet to ensure the network is ready, improving reliability and reducing potential issues during power-up.
2026-01-25 08:45:33 +01:00
d0774ff2b3 refactor ♻️: Refactored WOL packet capture and validation logic
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Improved the efficiency and readability of the WOL packet handling by refactoring the existing code. This includes restructuring the validation logic and optimizing the capture process.
2026-01-25 08:30:39 +01:00
21ec247569 feat : Add support for starting tcpdump with 'become: true' in wakeonlan module
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This commit introduces the functionality to start tcpdump using elevated privileges by setting 'become: true' in the wakeonlan module. This enhancement ensures that tcpdump can capture network traffic even when run as a non-root user.
2026-01-25 08:23:32 +01:00
a0db41cb81 fix 🐛: Fix issue with multiple interfaces and MAC addresses
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This fix targets the first element in the list to resolve issues related to multiple interfaces and MAC addresses.
2026-01-25 07:18:50 +01:00
e8e8f6d51b Fix corrupted .ansible-lint git object
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
2026-01-25 07:12:42 +01:00
907592b88b refactor ♻️: Refactor interface filter to include 'nic'
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 10s
Updated the interface filter to include the 'nic' option, enhancing the filtering capabilities.
2026-01-24 12:29:17 +01:00
00a6fcc966 refactor ♻️: Add changed_when: true to tasks for better task tracking
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 10s
ansible-lint / Ansible Lint (pull_request) Successful in 10s
This refactoring adds the 'changed_when' attribute to Ansible tasks, enhancing their ability to report changes accurately and improving overall task tracking.
2025-12-26 16:30:29 +01:00
0e16e350de refactor ♻️: Refactor shell commands for better error handling and consistency
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Updated shell commands to use `ansible.builtin.shell` with `executable: /bin/bash`, added `set -o pipefail` for improved error propagation, and refactored variable registration for clarity.
2025-12-26 16:28:30 +01:00
78f20966c3 refactor ♻️: Remove unused 'wol_bridges' variable
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This commit refactors the code by removing an unused variable named 'wol_bridges'. This change simplifies the codebase and eliminates unnecessary memory usage.
2025-12-26 16:13:49 +01:00
c5a1346eea docs 📝: Update README.md with usage examples, scenario descriptions, and known issues
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
This commit updates the README.md file to include a new section on 'Usage Examples' with detailed examples of how to use the role in different scenarios. It also updates the 'Common Proxmox Scenarios' table with more detailed descriptions and adds a new section on 'Known Issues'.
2025-12-26 16:03:19 +01:00
921b5d971f Merge remote-tracking branch 'origin/main' into test
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
2025-12-26 12:21:16 +01:00
90da27fe8e refactor ♻️: Refactor task to dynamically append MAC addresses and update debug message
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This refactoring involves updating the task logic to dynamically append MAC addresses to relevant data structures. Additionally, it includes an update to the debug message format for better clarity and consistency.
2025-12-26 12:19:22 +01:00
8e1d095ead feat : Add loop and condition to process en_interfaces
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This commit introduces a new loop and conditional logic to handle the processing of `en_interfaces`, enhancing the functionality of the system by allowing more comprehensive interface management.
2025-12-26 12:11:18 +01:00
1647839c8c refactor ♻️: Simplify and update task reporting
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Refactored the task reporting process to improve clarity and efficiency, updating the code logic while maintaining external behavior.
2025-12-26 12:08:19 +01:00
b1b73151b6 docs 📝: Updated README for multiple bridges and improved persistence method.
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
The README has been updated to include instructions for supporting multiple bridges and enhancing the persistence method.
2025-12-26 11:54:23 +01:00
47d10beea0 Merge branch 'test' of https://repo.piave7.duckdns.org/Jose/ansible_proxmox_WOL into test
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 17s
2025-12-26 11:46:04 +01:00
ce52207812 docs 📝: Updated README.md for clarity and improved readability
Fixed minor grammatical errors and reorganized content in the README.md file.
2025-12-26 11:46:01 +01:00
b94be8a6e4 docs 📝: Updated README.md for clarity and improved readability
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Fixed minor grammatical errors and reorganized content in the README.md file.
2025-12-26 11:00:41 +01:00
06a82a8221 feat : Add new task for starting service
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This commit introduces a new feature to add a task for initiating a service, enhancing the system's functionality.
2025-12-26 10:50:55 +01:00
f11ad0badc refactor ♻️: Refactor ExecStart to use a list for commands and conditionally execute them.
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This refactoring involves restructuring the `ExecStart` method to utilize a list of commands instead of a single string. This change allows for more flexible execution based on certain conditions, enhancing the modularity and maintainability of the code.
2025-12-26 10:45:26 +01:00
942625f894 refactor ♻️: Refactor task to use template for creating systemd service.
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This commit refactors the existing task to utilize a template for creating systemd services, enhancing modularity and maintainability.
2025-12-26 10:41:25 +01:00
0afc2a0461 feat : Add new handler to reload systemd and restart WOL.
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This commit introduces a new handler that allows reloading the systemd configuration and restarting the Wake-on-LAN (WOL) service, ensuring persistent wake-up functionality.
2025-12-26 10:36:19 +01:00
55e5aa94d2 feat : Add new task to disable Wake-on-LAN and update existing task with mode parameter
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
This commit introduces a new feature to disable Wake-on-LAN functionality and enhances an existing task by adding a mode parameter, allowing for more flexible configuration options.
2025-12-26 10:02:46 +01:00
9c3cf0dbcc refactor ♻️: Rename task from 'Enable Wake-on-LAN (magic packet)' to 'Set Wake-on-LAN'
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Refactored the task name to be more concise and descriptive, improving clarity and consistency in terminology.
2025-12-26 09:55:17 +01:00
97b2a519eb refactor ♻️: Remove quotes from wol_mode loop condition
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Refactored the loop condition in the code to remove unnecessary quotes around the variable `wol_mode`.
2025-12-26 09:30:56 +01:00
37c54251bf fix 🐛: Update loop condition to include quotes around wol_mode
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Modified the loop condition in the code to ensure proper handling of the 'wol_mode' variable by enclosing it in quotes. This change addresses an issue where the variable was not being interpreted correctly due to missing quotes.
2025-12-26 09:26:44 +01:00
aea02a8e39 refactor ♻️: Refactor Wake-on-LAN config to use dynamic mode selection, remove unused bridge mapping.
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This refactoring updates the Wake-on-LAN configuration to dynamically select modes based on system capabilities and removes unnecessary logic related to bridge mappings.
2025-12-26 09:24:04 +01:00
6a5c9f5967 refactor ♻️: Simplify Wake-on-LAN task loop variables and conditions
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Refactored the Wake-on-LAN task to use more concise and readable loop variables and conditions, improving code clarity without altering its functionality.
2025-12-26 09:19:47 +01:00
a96493eeab refactor ♻️: Refactor Wake-on-LAN task to use zip for parallel processing of interfaces
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
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.
2025-12-26 09:17:42 +01:00
00bc598285 refactor ♻️: Remove commented-out debug tasks and update Wake-on-LAN condition
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
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.
2025-12-26 09:13:34 +01:00
39430b88f3 refactor ♻️: Simplify task logic by removing redundant debug outputs and combining checks.
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Refactored the task processing logic to eliminate unnecessary debug statements and consolidate related conditional checks for improved readability and efficiency.
2025-12-26 09:08:02 +01:00
2dc6fd8158 refactor ♻️: Refactor task handling to use en_interfaces and add non-empty list condition
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
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.
2025-12-26 08:50:11 +01:00
a26cb5d0cf feat : Add WoL status and interface mode support
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Implemented new features to display Wake-on-LAN (WoL) status and supported modes for network interfaces.
2025-12-26 08:47:13 +01:00
a8d178ad6b refactor ♻️: Remove redundant variable from debug message
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Refactored code by removing an unnecessary variable that was being used in a debug message, simplifying the logic and improving readability.
2025-12-26 08:38:02 +01:00
95f52e061b refactor ♻️: Refactor debug task to include wol_enabled values
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Updated the debug task to display the `wol_enabled` status for all items, enhancing visibility and usability.
2025-12-26 08:34:56 +01:00
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