limit distributions major version check to redhat
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cbf5bcaff3
commit
3a3cda6c50
|
@ -19,7 +19,7 @@
|
||||||
#AddressFamily any
|
#AddressFamily any
|
||||||
#ListenAddress 0.0.0.0
|
#ListenAddress 0.0.0.0
|
||||||
#ListenAddress ::
|
#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 }}
|
Protocol {{ sshd_protocol }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -121,13 +121,13 @@ X11Forwarding {{ sshd_x11_forwarding }}
|
||||||
#X11DisplayOffset 10
|
#X11DisplayOffset 10
|
||||||
#X11UseLocalhost yes
|
#X11UseLocalhost yes
|
||||||
#PermitTTY 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
|
PrintMotd no
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#PrintLastLog no
|
#PrintLastLog no
|
||||||
TCPKeepAlive {{ sshd_tcp_keep_alive }}
|
TCPKeepAlive {{ sshd_tcp_keep_alive }}
|
||||||
#UseLogin no
|
#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
|
UsePrivilegeSeparation sandbox
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#PermitUserEnvironment no
|
#PermitUserEnvironment no
|
||||||
|
|
Loading…
Reference in New Issue
Block a user