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.
This commit is contained in:
2026-01-25 08:59:22 +01:00
parent f2ead2ad47
commit d509a4946e

View File

@@ -132,14 +132,14 @@
- name: Send WOL packet via shell
ansible.builtin.shell: wakeonlan {{ wol_mac_addresses[0] }}
delegate_to: localhost
# delegate_to: localhost
- name: Send Wake-on-LAN packet from localhost
community.general.wakeonlan:
mac: "{{ wol_mac_addresses[0] }}"
port: "{{ wol_port }}"
broadcast: 255.255.255.255
delegate_to: localhost
# delegate_to: localhost
- name: Wait for tcpdump to finish
ansible.builtin.async_status: