refactor ♻️: Rename 'wol_capabilities_check' to 'wol_check'
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
Refactored the function name and updated all references throughout the codebase to maintain consistency and improve readability.
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
- name: Validate WOL capability using ethtool for detected interfaces
|
||||
ansible.builtin.command: "ethtool {{ item }}"
|
||||
register: wol_capabilities_check
|
||||
register: wol_check
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
loop: "{{ en_interfaces }}"
|
||||
@@ -42,7 +42,7 @@
|
||||
- name: Display ethtool output for detected interfaces
|
||||
ansible.builtin.debug:
|
||||
msg: >
|
||||
{{ wol_capabilities_check.results | map(attribute='stdout_lines') | list }}
|
||||
{{ wol_check.results | map(attribute='stdout_lines') | list }}
|
||||
|
||||
- name: Build WOL status per interface
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user