From 050ab46e9270380f2607a2438d3cac953597e5ca Mon Sep 17 00:00:00 2001 From: MohammadReza Date: Sun, 18 Oct 2026 13:33:38 +0330 Subject: [PATCH] Fix deprecations that ansible-core 2.23 removes (#13667) * chore: fix deprecations that ansible-core 2.23 removes * chore: unwrap the templated assert in assert-sorted-checksums.yml --- roles/validate_inventory/tasks/main.yml | 2 +- scripts/assert-sorted-checksums.yml | 2 +- tests/ansible.cfg | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/validate_inventory/tasks/main.yml b/roles/validate_inventory/tasks/main.yml index 06fa68756..81710e9eb 100644 --- a/roles/validate_inventory/tasks/main.yml +++ b/roles/validate_inventory/tasks/main.yml @@ -116,7 +116,7 @@ # NOTICE: the check blatantly ignores the inet6-case - name: Guarantee that enough network address space is available for all pods assert: - that: "{{ (kubelet_max_pods | default(110)) | int <= (2 ** (32 - kube_network_node_prefix | int)) - 2 }}" + that: (kubelet_max_pods | default(110)) | int <= (2 ** (32 - kube_network_node_prefix | int)) - 2 msg: "Do not schedule more pods on a node than inet addresses are available." when: - not ignore_assert_errors diff --git a/scripts/assert-sorted-checksums.yml b/scripts/assert-sorted-checksums.yml index 904abdf10..e7c3caeb1 100755 --- a/scripts/assert-sorted-checksums.yml +++ b/scripts/assert-sorted-checksums.yml @@ -15,7 +15,7 @@ tasks: - name: Check all versions are strings assert: - that: "{{ item.1.value | reject('string') == [] }}" + that: "item.1.value | reject('string') == []" quiet: true loop: "{{ _minimal_data_needed }}" loop_control: diff --git a/tests/ansible.cfg b/tests/ansible.cfg index 130261858..5735a8b17 100644 --- a/tests/ansible.cfg +++ b/tests/ansible.cfg @@ -12,5 +12,4 @@ stdout_callback = default display_skipped_hosts = no library = ./library:../library callbacks_enabled = profile_tasks -jinja2_extensions = jinja2.ext.do roles_path = ../roles