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.
This commit is contained in:
2025-12-26 11:07:00 +01:00
parent 942625f894
commit 93d14fedbe
4 changed files with 147 additions and 97 deletions

View File

@@ -0,0 +1,3 @@
{% for interface in wol_final_interfaces %}
ACTION=="add", SUBSYSTEM=="net", KERNEL=="{{ interface }}", RUN+="/sbin/ethtool -s {{ interface }} wol {{ wol_mode }}"
{% endfor %}