feat: Create role
This commit is contained in:
3
templates/port.conf.j2
Normal file
3
templates/port.conf.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Port {{ ssh_listen_port }}
|
10
templates/security.conf.j2
Normal file
10
templates/security.conf.j2
Normal 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
|
Reference in New Issue
Block a user