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
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user