From a50c38a959469434ef778a408abdf15b4ffffd39 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Mon, 8 Sep 2025 18:09:28 -0600 Subject: [PATCH] refactor: disable ansible-lint invalid jinja error Not really invalid see https://github.com/ansible/ansible-lint/issues/4702 Signed-off-by: Rich Megginson --- tests/tests_host_to_host_cert.yml | 2 ++ tests/tests_mesh_cert.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/tests_host_to_host_cert.yml b/tests/tests_host_to_host_cert.yml index 78015b40..1db27bff 100644 --- a/tests/tests_host_to_host_cert.yml +++ b/tests/tests_host_to_host_cert.yml @@ -25,6 +25,8 @@ # need extra task file to iterate over hosts per tunnel - name: Add cert options to check set_fact: + # not really invalid - see https://github.com/ansible/ansible-lint/issues/4702 + # noqa jinja[invalid] __new_vpn_connections: "{{ __new_vpn_connections | d([]) + [item | combine(fixed_item)] | list }}" loop: "{{ vpn_connections }}" loop_control: diff --git a/tests/tests_mesh_cert.yml b/tests/tests_mesh_cert.yml index f8349dbe..ee287f25 100644 --- a/tests/tests_mesh_cert.yml +++ b/tests/tests_mesh_cert.yml @@ -20,6 +20,8 @@ - name: Add extra options to check set_fact: + # not really invalid - see https://github.com/ansible/ansible-lint/issues/4702 + # noqa jinja[invalid] __new_vpn_connections: "{{ __new_vpn_connections | d([]) + [item | combine(new_tunnel)] | list }}" loop: "{{ vpn_connections }}" vars: