Concatenació de cadenes

This commit is contained in:
2026-05-14 17:06:10 +02:00
parent d39cbd6fcb
commit 45d8444aa5

View File

@@ -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}}"