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
This commit is contained in:
MohammadReza
2026-10-18 10:03:38 +00:00
committed by GitHub
parent ee61864e43
commit 050ab46e92
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -116,7 +116,7 @@
# NOTICE: the check blatantly ignores the inet6-case # NOTICE: the check blatantly ignores the inet6-case
- name: Guarantee that enough network address space is available for all pods - name: Guarantee that enough network address space is available for all pods
assert: 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." msg: "Do not schedule more pods on a node than inet addresses are available."
when: when:
- not ignore_assert_errors - not ignore_assert_errors
+1 -1
View File
@@ -15,7 +15,7 @@
tasks: tasks:
- name: Check all versions are strings - name: Check all versions are strings
assert: assert:
that: "{{ item.1.value | reject('string') == [] }}" that: "item.1.value | reject('string') == []"
quiet: true quiet: true
loop: "{{ _minimal_data_needed }}" loop: "{{ _minimal_data_needed }}"
loop_control: loop_control:
-1
View File
@@ -12,5 +12,4 @@ stdout_callback = default
display_skipped_hosts = no display_skipped_hosts = no
library = ./library:../library library = ./library:../library
callbacks_enabled = profile_tasks callbacks_enabled = profile_tasks
jinja2_extensions = jinja2.ext.do
roles_path = ../roles roles_path = ../roles