commited current state

This commit is contained in:
DerLinkman
2026-05-08 21:27:10 +02:00
parent ffc1a6a8a5
commit 45ccd6a25f
43 changed files with 576 additions and 102 deletions
+31
View File
@@ -0,0 +1,31 @@
FROM debian:trixie-slim
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin
ENV ANSIBLE_MAJOR_VERSION=2.18
ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN apt update && apt install -y --no-install-recommends \
nano \
git \
wget \
unzip \
curl \
python3-pip \
tzdata \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/ssh/ssh_config.d \
&& printf 'Host *\n StrictHostKeyChecking no\n UserKnownHostsFile /dev/null\n' > /etc/ssh/ssh_config.d/99-no-hostkey-check.conf
RUN pip3 install --no-cache-dir --upgrade \
ansible-core~=${ANSIBLE_MAJOR_VERSION}
RUN mkdir -p /root/.bashrc.d
COPY ansible-functs.sh /root/.bashrc.d/ansible-functs.sh
RUN chmod +x /root/.bashrc.d/ansible-functs.sh \
&& printf '\n[ -f /root/.bashrc.d/ansible-functs.sh ] && . /root/.bashrc.d/ansible-functs.sh\n' >> /root/.bashrc
WORKDIR /ansible
CMD ["ansible-playbook", "--version"]
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# Useful bashrc functions for ansible in docker
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ap='ansible-playbook'
alias ag='ansible-galaxy'
alias av='ansible-vault'