[release-2.31] Fix pre-commit ansible-core 2.18 (#13292)

* Fix pre-commit ansible-core 2.18

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Fix duplicated task name "Test version"

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

---------

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
ChengHao Yang
2026-06-06 00:16:06 +08:00
committed by GitHub
parent 3df67eb089
commit 1863bfd3a7
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -33,6 +33,7 @@ repos:
hooks:
- id: ansible-lint
additional_dependencies:
- ansible-core>=2.18.0,<2.19.0
- jmespath==1.0.1
- netaddr==1.3.0
- distlib
@@ -49,7 +50,7 @@ repos:
name: Build and install kubernetes-sigs.kubespray Ansible collection
language: python
additional_dependencies:
- ansible-core>=2.16.4
- ansible-core>=2.18.0,<2.19.0
- distlib
entry: tests/scripts/collection-build-install.sh
pass_filenames: false
@@ -91,7 +92,7 @@ repos:
name: Update static files referencing default kubespray values
language: python
additional_dependencies:
- ansible-core>=2.16.4
- ansible-core>=2.18.0,<2.19.0
entry: scripts/propagate_ansible_variables.yml
pass_filenames: false
@@ -9,7 +9,7 @@
failed_when: >
version is failed or
'kata-runtime' not in version.stdout
- name: Test version
- name: Test version check
command: "/opt/kata/bin/kata-runtime check"
register: check
failed_when: >