diff --git a/defaults/main.yml b/defaults/main.yml index 3ad18ae..7985050 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,7 +4,7 @@ crypto_policy: 'STRICT' allow_tcp_forwarding: 'no' allow_agent_forwarding: 'no' - +client_alive_interval: 300 # Diffie Hellmann moduli size min_dh_size: '3072' ... diff --git a/tasks/main.yml b/tasks/main.yml index 5cb5ba5..6649b41 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -55,6 +55,8 @@ loop: - regexp: '^(#)?Banner' line: 'Banner /etc/issue' + - regexp: '^(#)?ClientAliveInterval' + line: "ClientAliveInterval {{ client_alive_interval }}" - regexp: '^(#)?IgnoreRhosts' line: 'IgnoreRhosts yes' - regexp: '^(#)?LoginGraceTime'