From c323e8c77031984d76d03a4c752e1f8b012d05dd Mon Sep 17 00:00:00 2001 From: Dan Guido Date: Thu, 29 Jan 2026 22:30:13 -0500 Subject: [PATCH] Fix AIP boolean assertion for Ansible 12 jinja2_native mode The ansible.utils.ipv4 filter returns the IP string when valid, not a boolean. Ansible 12+ enables jinja2_native by default, which requires assert.that clauses to evaluate to actual booleans. Add | bool filter to convert the truthy string to a proper boolean. Fixes #14948 Co-Authored-By: Claude Opus 4.5 --- roles/common/tasks/aip/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/aip/main.yml b/roles/common/tasks/aip/main.yml index c2d2d30bc..8f12a9a40 100644 --- a/roles/common/tasks/aip/main.yml +++ b/roles/common/tasks/aip/main.yml @@ -11,5 +11,5 @@ - name: Verify SNAT IPv4 found assert: - that: snat_aipv4 | ansible.utils.ipv4 + that: (snat_aipv4 | ansible.utils.ipv4) | bool msg: The SNAT IPv4 address not found. Cannot proceed with the alternative ingress ip.