From 6b106cce38106e7beb9db623a9d98784cb8bbc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 30 Dec 2021 15:39:08 +0000 Subject: ansible_port: Add ssh port switch to network roles --- roles/sshd/templates/sshd_config.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/sshd/templates') 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 -- cgit v1.2.3