From 45d8444aa5ede1c7a67be6a3ddfb68a43adb35ce Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Thu, 14 May 2026 17:06:10 +0200 Subject: [PATCH] =?UTF-8?q?Concatenaci=C3=B3=20de=20cadenes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/016_tasks_handlers/playbooks/stack_status.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/016_tasks_handlers/playbooks/stack_status.yml b/examples/016_tasks_handlers/playbooks/stack_status.yml index f77d573..acd1b0b 100644 --- a/examples/016_tasks_handlers/playbooks/stack_status.yml +++ b/examples/016_tasks_handlers/playbooks/stack_status.yml @@ -34,7 +34,7 @@ register: app_index - fail: msg="index failed to return content" - when: "'Hello, from sunny {{item.item}}!' not in item.content" + when: ("Hello, from sunny " ~ item.item ~ "!") not in item.content loop: "{{app_index.results}}" - name: verify backend db response @@ -43,7 +43,7 @@ register: app_db - fail: msg="db failed to return content" - when: "'Database Connected from {{item.item}}!' not in item.content" + when: ("Database Connected from " ~ item.item ~ "!") not in item.content loop: "{{app_db.results}}" - hosts: control @@ -57,7 +57,7 @@ register: lb_connectivity - fail: msg="index failed to return content" - when: "'Hello, from sunny' not in item.content" + when: ("Hello, from sunny " ~ item.item ~ "!") not in item.content loop: "{{lb_connectivity.results}}" - name: verify end-to-end db response @@ -66,5 +66,5 @@ register: lb_db - fail: msg="db failed to return content" - when: "'Database Connected from' not in item.content" + when: ("Database Connected from " ~ item.item ~ "!") not in item.content loop: "{{lb_db.results}}" \ No newline at end of file