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
|
- name: Validate WOL capability using ethtool for detected interfaces
|
||||||
ansible.builtin.command: "ethtool {{ item }}"
|
ansible.builtin.command: "ethtool {{ item }}"
|
||||||
register: wol_capabilities_check
|
register: wol_check
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
loop: "{{ en_interfaces }}"
|
loop: "{{ en_interfaces }}"
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
- name: Display ethtool output for detected interfaces
|
- name: Display ethtool output for detected interfaces
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: >
|
msg: >
|
||||||
{{ wol_capabilities_check.results | map(attribute='stdout_lines') | list }}
|
{{ wol_check.results | map(attribute='stdout_lines') | list }}
|
||||||
|
|
||||||
- name: Build WOL status per interface
|
- name: Build WOL status per interface
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
Reference in New Issue
Block a user