Skip to content

Commit 9e6f016

Browse files
ffaisvomba
authored andcommitted
Bump ansible-lint to 25.2.0
Signed-off-by: ffais <ffais@fbk.eu>
1 parent 64ab27d commit 9e6f016

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

images/capi/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ IMAGE_NAME ?= cluster-node-image-builder
212212
CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME)
213213
TAG ?= dev
214214
ARCH ?= amd64
215-
BASE_IMAGE ?= docker.io/library/ubuntu:jammy
215+
BASE_IMAGE ?= docker.io/library/ubuntu:24.04
216216
BUILDKIT_SYNTAX ?= docker/dockerfile:1.14
217217

218218
## --------------------------------------
@@ -1055,19 +1055,19 @@ validate-all: ## Validates the Packer config for all build targets
10551055
lint: ## Runs linters on image-builder code
10561056
sh_files = $(shell find . -type f -name "*.sh")
10571057
lint: deps-lint
1058-
ansible-lint ansible/
1058+
ansible-lint --project-dir . ansible/
10591059
# ignore error code since shellcheck exits with Error 1 if problems are found despite running properly
10601060
-@for f in $(sh_files); do (shellcheck -x $$f); done
10611061

10621062
.PHONY: lint-fix
10631063
lint-fix: ## Runs linters on image-builder code and fixes issues
10641064
lint-fix: deps-lint
1065-
ansible-lint --fix=all ansible/
1065+
ansible-lint --fix=all --project-dir . ansible/
10661066

10671067
.PHONY: lint-ignore
10681068
lint-ignore: ## Runs linters on image-builder code and creates an "ignore" file
10691069
lint-ignore: deps-lint
1070-
ansible-lint --generate-ignore ansible/
1070+
ansible-lint --generate-ignore --project-dir . ansible/
10711071

10721072
## --------------------------------------
10731073
## Clean targets

images/capi/hack/ensure-ansible-lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set -o pipefail
2222

2323
source hack/utils.sh
2424

25-
_version="6.21.1"
25+
_version="25.2.0"
2626

2727
# Change directories to the parent directory of the one in which this
2828
# script is located.

images/capi/hack/ensure-ansible.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fi
4949
echo ${ansible_version[*]}
5050

5151
ansible-galaxy collection install \
52-
'community.general:<12.0.0' \
53-
ansible.posix \
52+
'community.general:<=12.0.0' \
53+
'ansible.posix' \
5454
'ansible.windows:>=1.7.0' \
5555
community.windows

0 commit comments

Comments
 (0)