refactor ♻️: Reorder and repeat 'Report WOL configuration' task
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:
@@ -108,15 +108,6 @@
|
|||||||
loop: "{{ en_interfaces }}"
|
loop: "{{ en_interfaces }}"
|
||||||
when: en_interfaces | length > 0
|
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
|
- name: Start tcpdump to capture WOL packet
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
@@ -157,3 +148,12 @@
|
|||||||
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
|
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(', ') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user