Simplify ansible-lint config and fix Docker builds: Ubuntu DEBIAN_FRONTEND, CentOS --allowerasing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
3
.github/workflows/ci-cd.yml
vendored
3
.github/workflows/ci-cd.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user