mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-30 12:10:19 +01:00
f6ae2094fe
Specifics:
* Debian 12 has no longer the instantiated service using inet, see the
following commit:
0dc73888bb
* I am not matching the Description tag verbosely as I do not find it
crucial for functionality.
* We generate additional -f switch to the sshd CLI pointing go the main
sshd config we manage
* The Before=sshd.service in the socket is not generated as I find it
unnecessary when we conflict the service.
* Recent Ubuntu versions have RuntimeDirectoryPreserve option, which I
set for all Ubuntu/Debian as it should not hurt.
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
19 lines
346 B
Django/Jinja
19 lines
346 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 %}
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|