Compare commits

...
4 Commits
4 changed files with 11 additions and 5 deletions
+4 -1
View File
@@ -2,6 +2,9 @@
host_key_checking = False
roles_path = ./roles:/etc/ansible/roles
group_vars = ./group_vars
forks = 20
strategy = free
[ssh_connection]
ssh_args = -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
ssh_args = -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=1800s
pipelining = True
+1 -1
View File
@@ -1,6 +1,6 @@
- hosts: all
become: true
user: admin
remote_user: "{{ ansible_user|default('admin') }}"
tasks:
- name: Verify if system is Debian
debug:
+2 -2
View File
@@ -1,7 +1,7 @@
FROM debian:trixie-slim
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin
ENV ANSIBLE_MAJOR_VERSION=2.18
ENV ANSIBLE_MAJOR_VERSION=2.20
ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN apt update && apt install -y --no-install-recommends \
@@ -19,7 +19,7 @@ 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}
ansible-core~=${ANSIBLE_MAJOR_VERSION}
RUN mkdir -p /root/.bashrc.d
COPY ansible-functs.sh /root/.bashrc.d/ansible-functs.sh
+4 -1
View File
@@ -3,7 +3,10 @@
content: |
#!/bin/bash
# Managed by Ansible - Do not edit manually
fastfetch -s os:kernel:uptime:packages:shell:disk:cpu:memory:localip:colors
if [[ -z "${FASTFETCH_MOTD_SHOWN:-}" && -z "${SUDO_USER:-}" ]]; then
fastfetch -s os:kernel:uptime:packages:shell:disk:cpu:memory:localip:colors
export FASTFETCH_MOTD_SHOWN=1
fi
dest: /etc/profile.d/motd.sh
owner: root
group: root