From 3d64edd9b7d0cca32342de21430377a7958ba51f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 11 Aug 2025 13:39:24 +0200 Subject: [PATCH] fix(rockylinux): install ansible-lint --- Dockerfile.rockylinux8 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.rockylinux8 b/Dockerfile.rockylinux8 index 5884a59..5328741 100644 --- a/Dockerfile.rockylinux8 +++ b/Dockerfile.rockylinux8 @@ -12,11 +12,12 @@ RUN dnf update --assumeyes && \ # We must change python to 3.12 (default 3.6), to be compliant with ansible-core. Furthermore, we must upgrade pip to # latest version. Otherwise is still used pip for python 3.6. At least, we install boto3, which is required for the aws -# dynamic inventory manually, because the official python-boto3 package is for python 3.6. +# dynamic inventory manually, because the official python-boto3 package is for python 3.6. At least, we install +# ansible-lint via pip to be able to lint ansible roles. RUN alternatives --set python3 /usr/bin/python3.12 && \ curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \ python3 get-pip.py && \ - pip install boto3 + pip install ansible-lint boto3 # Create default ansible inventory file RUN mkdir --parents /etc/ansible