ansible-sshd/templates/sshd.socket.j2
Matt Willsher d4eae954c1
feat: Ubuntu noble (#290)
* feat: Add support for Ubuntu Nobel/24.04 LTS
* fix: Add missing PrintMotd to Ubuntu 22.04
* fix(tests): Various linting fixes

---------
Co-authored-by: Jakub Jelen <jjelen@redhat.com>
2024-06-21 09:12:02 +01:00

25 lines
561 B
Django/Jinja

[Unit]
Description=OpenBSD Secure Shell server socket
Documentation=man:sshd(8) man:sshd_config(5)
{% if __sshd_socket_accept %}
Conflicts={{ sshd_service }}.service
{% else %}
Before=sockets.target
{% endif %}
[Socket]
ListenStream=22
{% if __sshd_socket_accept %}
Accept=yes
{% else %}
Accept=no
{% endif %}
{% if __sshd_socket_freebind is not none %}
FreeBind={{ 'yes' if __sshd_socket_freebind else 'no' }}
{% endif %}
[Install]
WantedBy=sockets.target
{% if __sshd_socket_required_by is not none %}
RequiredBy={{ __sshd_socket_required_by }}
{% endif %}