Build out bootstrap role: admin user, sudoers, motd, keyboard, openssh, sysctl, bashrc, ssh keys

This commit is contained in:
DerLinkman
2026-07-18 00:07:56 +02:00
parent fbac01eea9
commit e510ac1f15
18 changed files with 294 additions and 11 deletions
+19
View File
@@ -0,0 +1,19 @@
- name: Set MOTD to display fastfetch on login
copy:
content: |
#!/bin/bash
# Managed by Ansible - Do not edit manually
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
mode: '0755'
- name: Remove default MOTD file if it exists
file:
path: /etc/motd
state: absent