fix 🐛: Update loop condition to include quotes around wol_mode
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
Modified the loop condition in the code to ensure proper handling of the 'wol_mode' variable by enclosing it in quotes. This change addresses an issue where the variable was not being interpreted correctly due to missing quotes.
This commit is contained in:
@@ -62,8 +62,8 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.0 }}"
|
label: "{{ item.0 }}"
|
||||||
when:
|
when:
|
||||||
- "{{ wol_mode }} not in item.1.stdout"
|
- "'{{ wol_mode }}' not in item.1.stdout"
|
||||||
- "{{ wol_mode }} in item.2.stdout"
|
- "'{{ wol_mode }}' in item.2.stdout"
|
||||||
|
|
||||||
|
|
||||||
# # ============================================================
|
# # ============================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user