refactor ♻️: Reorder and repeat 'Report WOL configuration' task
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 1m22s
Mark stale issues and pull requests / stale (push) Successful in 3s

This refactoring reorders the 'Report WOL configuration' task to ensure it is repeated as part of the process, improving clarity and completeness.
This commit is contained in:
2026-01-25 11:57:09 +01:00
parent 6d03aacc85
commit 9ac1187318

View File

@@ -108,15 +108,6 @@
loop: "{{ en_interfaces }}"
when: en_interfaces | length > 0
- name: Report WOL configuration
ansible.builtin.debug:
msg: |
Wake-on-LAN Configuration Summary:
===================================
Physical Interfaces: {{ en_interfaces | join(', ') }}
WOL Mode: {{ wol_mode }}
MAC Addresses: {{ wol_mac_addresses | join(', ') }}
- name: Start tcpdump to capture WOL packet
become: true
ansible.builtin.shell: |
@@ -157,3 +148,12 @@
success_msg: "✅ Wake-on-LAN magic packet received by host"
fail_msg: "❌ Wake-on-LAN magic packet NOT detected"
changed_when: tcpdump_status.rc == 0
- name: Report WOL configuration
ansible.builtin.debug:
msg: |
Wake-on-LAN Configuration Summary:
===================================
Physical Interfaces: {{ en_interfaces | join(', ') }}
WOL Mode: {{ wol_mode }}
MAC Addresses: {{ wol_mac_addresses | join(', ') }}