From 37c54251bfee8335e495dce467a7a0037a6e2782 Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 26 Dec 2025 09:26:44 +0100 Subject: [PATCH] =?UTF-8?q?fix=20=F0=9F=90=9B:=20Update=20loop=20condition?= =?UTF-8?q?=20to=20include=20quotes=20around=20wol=5Fmode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index cd82888..0c8ffea 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -62,8 +62,8 @@ loop_control: label: "{{ item.0 }}" when: - - "{{ wol_mode }} not in item.1.stdout" - - "{{ wol_mode }} in item.2.stdout" + - "'{{ wol_mode }}' not in item.1.stdout" + - "'{{ wol_mode }}' in item.2.stdout" # # ============================================================