fix(rockylinux): install ansible-lint
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 11s
Build / build-arch-linux (push) Successful in 5m44s
Build / build-rocky-linux-8 (push) Successful in 7m49s

This commit is contained in:
2025-08-11 13:39:24 +02:00
parent 93718043d7
commit 3d64edd9b7

View File

@ -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 # 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 # 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 && \ RUN alternatives --set python3 /usr/bin/python3.12 && \
curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \ curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \
python3 get-pip.py && \ python3 get-pip.py && \
pip install boto3 pip install ansible-lint boto3
# Create default ansible inventory file # Create default ansible inventory file
RUN mkdir --parents /etc/ansible RUN mkdir --parents /etc/ansible