limit distributions major version check to redhat
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-19 14:44:20 +02:00
parent cbf5bcaff3
commit 3a3cda6c50
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -19,7 +19,7 @@
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
{% if ansible_distribution_major_version is version('8', '<') %}
{% if ansible_os_family | lower == "redhat" and ansible_distribution_major_version is version('8', '<') %}
Protocol {{ sshd_protocol }}
{% endif %}
@ -121,13 +121,13 @@ X11Forwarding {{ sshd_x11_forwarding }}
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
{% if ansible_distribution_major_version is version('7', '>') %}
{% if ansible_os_family | lower == "redhat" and ansible_distribution_major_version is version('7', '>') %}
PrintMotd no
{% endif %}
#PrintLastLog no
TCPKeepAlive {{ sshd_tcp_keep_alive }}
#UseLogin no
{% if ansible_distribution_major_version is version('8', '<') %}
{% if ansible_os_family | lower == "redhat" and ansible_distribution_major_version is version('8', '<') %}
UsePrivilegeSeparation sandbox
{% endif %}
#PermitUserEnvironment no