refactor ♻️: Refactor task management by removing unused task and adjusting pause duration.
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 10s
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.
This commit is contained in:
@@ -19,4 +19,4 @@ wol_verify: true
|
|||||||
# Report MAC addresses for WOL packet senders
|
# Report MAC addresses for WOL packet senders
|
||||||
wol_report_mac: true
|
wol_report_mac: true
|
||||||
|
|
||||||
wol_port: 9
|
wol_port: 9
|
||||||
|
|||||||
@@ -125,10 +125,11 @@
|
|||||||
register: tcpdump_result
|
register: tcpdump_result
|
||||||
async: 12
|
async: 12
|
||||||
poll: 0
|
poll: 0
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Give tcpdump time to start
|
- name: Give tcpdump time to start
|
||||||
ansible.builtin.pause:
|
ansible.builtin.pause:
|
||||||
seconds: 2
|
seconds: 1
|
||||||
|
|
||||||
# - 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] }}
|
||||||
@@ -154,4 +155,5 @@
|
|||||||
that:
|
that:
|
||||||
- tcpdump_status.rc == 0
|
- tcpdump_status.rc == 0
|
||||||
success_msg: "✅ Wake-on-LAN magic packet received by host"
|
success_msg: "✅ Wake-on-LAN magic packet received by host"
|
||||||
fail_msg: "❌ Wake-on-LAN magic packet NOT detected"
|
fail_msg: "❌ Wake-on-LAN magic packet NOT detected"
|
||||||
|
changed_when: tcpdump_status.rc == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user