refactor ♻️: Refactor task management by removing unused task and adjusting pause duration.
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:
2026-01-25 09:08:09 +01:00
parent 44f9c8ffa9
commit a82bd5bac5
2 changed files with 5 additions and 3 deletions

View File

@@ -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] }}
@@ -155,3 +156,4 @@
- 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