From 97b2a519eb4dd12a6f921cb022d1066a0646b5e9 Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 26 Dec 2025 09:30:56 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Remove=20quote?= =?UTF-8?q?s=20from=20wol=5Fmode=20loop=20condition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactored the loop condition in the code to remove unnecessary quotes around the variable `wol_mode`. --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 0c8ffea..620db93 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 # # ============================================================