diff --git a/templates/etc/ssh/sshd_config.j2 b/templates/etc/ssh/sshd_config.j2 index cdd5f00..842946a 100644 --- a/templates/etc/ssh/sshd_config.j2 +++ b/templates/etc/ssh/sshd_config.j2 @@ -121,7 +121,9 @@ X11Forwarding {{ sshd_x11_forwarding }} #X11DisplayOffset 10 #X11UseLocalhost yes #PermitTTY yes +{% if ansible_distribution_major_version is version('7', '>') %} PrintMotd no +{% endif %} #PrintLastLog no TCPKeepAlive {{ sshd_tcp_keep_alive }} #UseLogin no