aboutsummaryrefslogtreecommitdiffstats
path: root/roles/sshd/templates/sshd_config.j2
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-30 15:39:08 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-30 15:50:40 +0000
commit6b106cce38106e7beb9db623a9d98784cb8bbc86 (patch)
treea7ec7381526c44dd778ab3a911e55b654c1746eb /roles/sshd/templates/sshd_config.j2
parentd39f2e2ac88b107014c373b380eb76adae0f91ee (diff)
downloadrules-6b106cce38106e7beb9db623a9d98784cb8bbc86.tar.gz
ansible_port: Add ssh port switch to network roles
Diffstat (limited to 'roles/sshd/templates/sshd_config.j2')
-rw-r--r--roles/sshd/templates/sshd_config.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/sshd/templates/sshd_config.j2 b/roles/sshd/templates/sshd_config.j2
index 534ea39..f40e160 100644
--- a/roles/sshd/templates/sshd_config.j2
+++ b/roles/sshd/templates/sshd_config.j2
@@ -1,5 +1,8 @@
# managed by Ansible
+# network
+Port {{ ansible_port }}
+
# security
PermitRootLogin yes
MaxAuthTries 6
remember that computers suck.