ansible-sshd/templates/sshd.socket.j2

26 lines
561 B
Text
Raw Normal View History

[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 %}