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

@@ -21,24 +21,6 @@ skip_list:
- galaxy # We don't publish to Galaxy
- meta-no-info # No meta/main.yml files
# Configure specific rules
rules:
line-length:
max: 120
truthy:
allowed-values: ['true', 'false', 'yes', 'no', 'on', 'off']
braces:
max-spaces-inside: 1
max-spaces-inside-empty: 0
brackets:
max-spaces-inside: 1
max-spaces-inside-empty: 0
indentation:
spaces: 2
indent-sequences: true
comments:
min-spaces-from-content: 1
# Offline mode (don't check for newer ansible-lint versions)
offline: false

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