mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-01 07:00:17 +01:00
d4eae954c1
* 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>
25 lines
561 B
Django/Jinja
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 %}
|