refactor ♻️: Remove unnecessary delegate_to: localhost from WOL tasks
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
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:
@@ -132,14 +132,14 @@
|
|||||||
|
|
||||||
- name: Send WOL packet via shell
|
- name: Send WOL packet via shell
|
||||||
ansible.builtin.shell: wakeonlan {{ wol_mac_addresses[0] }}
|
ansible.builtin.shell: wakeonlan {{ wol_mac_addresses[0] }}
|
||||||
delegate_to: localhost
|
# delegate_to: localhost
|
||||||
|
|
||||||
- name: Send Wake-on-LAN packet from localhost
|
- name: Send Wake-on-LAN packet from localhost
|
||||||
community.general.wakeonlan:
|
community.general.wakeonlan:
|
||||||
mac: "{{ wol_mac_addresses[0] }}"
|
mac: "{{ wol_mac_addresses[0] }}"
|
||||||
port: "{{ wol_port }}"
|
port: "{{ wol_port }}"
|
||||||
broadcast: 255.255.255.255
|
broadcast: 255.255.255.255
|
||||||
delegate_to: localhost
|
# delegate_to: localhost
|
||||||
|
|
||||||
- name: Wait for tcpdump to finish
|
- name: Wait for tcpdump to finish
|
||||||
ansible.builtin.async_status:
|
ansible.builtin.async_status:
|
||||||
|
|||||||
Reference in New Issue
Block a user