feat: Create role

This commit is contained in:
2022-10-04 15:19:21 +02:00
committed by pulsar89.5
parent d7fd830a52
commit 4d321f490a
7 changed files with 85 additions and 3 deletions

3
templates/port.conf.j2 Normal file
View File

@@ -0,0 +1,3 @@
# {{ ansible_managed }}
Port {{ ssh_listen_port }}

View File

@@ -0,0 +1,10 @@
# {{ ansible_managed }}
PermitRootLogin {{ ssh_permit_root_login }}
PasswordAuthentication no
PermitEmptyPasswords no
LoginGraceTime 30
{{ 'DebianBanner no' if (ansible_facts['distribution'] | lower) == 'debian' }}
X11Forwarding no
StrictModes yes