Simplify ansible-lint config and fix Docker builds: Ubuntu DEBIAN_FRONTEND, CentOS --allowerasing

This commit is contained in:
Sebastian Palencsár
2025-06-19 05:45:17 +02:00
parent 3e61be570f
commit f01070cbd4
2 changed files with 2 additions and 19 deletions

View File

@@ -79,6 +79,7 @@ jobs:
run: |
docker build -t test-ubuntu:${{ matrix.ubuntu_version }} -f- . <<EOF
FROM ubuntu:${{ matrix.ubuntu_version }}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3 python3-pip sudo openssh-server curl \
&& apt-get clean \
@@ -212,7 +213,7 @@ jobs:
docker build -t test-centos:stream9 -f- . <<EOF
FROM quay.io/centos/centos:stream9
RUN dnf update -y && dnf install -y \
python3 python3-pip sudo openssh-server curl \
python3 python3-pip sudo openssh-server --allowerasing \
&& dnf clean all
RUN useradd -m -s /bin/bash testuser && \
echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers