refactor ♻️: Refactor WOL task to use localhost
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
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.
This commit is contained in:
@@ -130,8 +130,8 @@
|
|||||||
ansible.builtin.pause:
|
ansible.builtin.pause:
|
||||||
seconds: 2
|
seconds: 2
|
||||||
|
|
||||||
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user