Compare commits
4
Commits
5febb427e6
...
cef71dcd1b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cef71dcd1b | ||
|
|
f8a5505047 | ||
|
|
0249f34ddf | ||
|
|
e3b60540b0 |
+4
-1
@@ -2,6 +2,9 @@
|
|||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
roles_path = ./roles:/etc/ansible/roles
|
roles_path = ./roles:/etc/ansible/roles
|
||||||
group_vars = ./group_vars
|
group_vars = ./group_vars
|
||||||
|
forks = 20
|
||||||
|
strategy = free
|
||||||
|
|
||||||
[ssh_connection]
|
[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
@@ -1,6 +1,6 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
user: admin
|
remote_user: "{{ ansible_user|default('admin') }}"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Verify if system is Debian
|
- name: Verify if system is Debian
|
||||||
debug:
|
debug:
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
ENV TZ=Europe/Berlin
|
ENV TZ=Europe/Berlin
|
||||||
ENV ANSIBLE_MAJOR_VERSION=2.18
|
ENV ANSIBLE_MAJOR_VERSION=2.20
|
||||||
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
||||||
|
|
||||||
RUN apt update && apt install -y --no-install-recommends \
|
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
|
&& 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 \
|
RUN pip3 install --no-cache-dir --upgrade \
|
||||||
ansible-core~=${ANSIBLE_MAJOR_VERSION}
|
ansible-core~=${ANSIBLE_MAJOR_VERSION}
|
||||||
|
|
||||||
RUN mkdir -p /root/.bashrc.d
|
RUN mkdir -p /root/.bashrc.d
|
||||||
COPY ansible-functs.sh /root/.bashrc.d/ansible-functs.sh
|
COPY ansible-functs.sh /root/.bashrc.d/ansible-functs.sh
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
content: |
|
content: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Managed by Ansible - Do not edit manually
|
# 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
|
dest: /etc/profile.d/motd.sh
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|||||||
Reference in New Issue
Block a user