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
+42
View File
@@ -0,0 +1,42 @@
# {{ ansible_managed }}
# This file is managed by Ansible. Do not edit it manually.
# This is the ssh server system-wide configuration file.
# See sshd_config(5) for more information.
Port 22
AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::
# HostKeys
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
# Authentication
PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
AuthenticationMethods publickey
MaxAuthTries 3
# SFTP
Subsystem sftp /usr/lib/openssh/sftp-server
# Security
X11Forwarding no
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding yes
PermitOpen any
ClientAliveInterval 300
ClientAliveCountMax 2
Compression no
UseDNS no
# Logging
SyslogFacility AUTH
LogLevel VERBOSE
# Accept locale-related environment variables
AcceptEnv LANG LC_*