refactor ♻️: Refactor task display to include WoL status with loop and default output
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Updated the task display logic to include the Wake-on-LAN (WoL) status using a loop, ensuring a more comprehensive and dynamic output.
This commit is contained in:
@@ -50,7 +50,8 @@
|
||||
|
||||
- name: Display WoL status
|
||||
debug:
|
||||
msg: "{{ wol_status.stdout}}"
|
||||
msg: "{{ item.item }}: {{ item.stdout | default('No output') }}"
|
||||
loop: "{{ wol_status.results }}"
|
||||
|
||||
- name: Display WOL status summary
|
||||
ansible.builtin.debug:
|
||||
|
||||
Reference in New Issue
Block a user