This repository was archived by the owner on Dec 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ Warning: This role disables root-login on the target server! Please make sure yo
57
57
| ` ssh_client_password_login ` | false | ` true ` to allow password-based authentication with the ssh client |
58
58
| ` ssh_server_password_login ` | false | ` true ` to allow password-based authentication with the ssh server |
59
59
| ` ssh_banner ` | ` false ` | ` true ` to print a banner on login |
60
+ | ` ssh_banner_path ` | '/etc/sshd/banner.txt' | path to the SSH banner file |
60
61
| ` ssh_client_hardening ` | ` true ` | ` false ` to stop harden the client |
61
62
| ` ssh_client_port ` | ` '22' ` | Specifies the port number to connect on the remote host. |
62
63
| ` ssh_client_compression ` | ` false ` | Specifies whether the client requests compression. |
Original file line number Diff line number Diff line change @@ -137,9 +137,12 @@ ssh_print_motd: false # sshd
137
137
# false to disable display of last login information
138
138
ssh_print_last_log : false # sshd
139
139
140
- # false to disable serving /etc/ ssh/ banner.txt before authentication is allowed
140
+ # false to disable serving ssh warning banner before authentication is allowed
141
141
ssh_banner : false # sshd
142
142
143
+ # path to file with ssh warning banner
144
+ ssh_banner_path : ' /etc/ssh/banner.txt'
145
+
143
146
# false to disable distribution version leakage during initial protocol handshake
144
147
ssh_print_debian_banner : false # sshd (Debian OS family only)
145
148
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ PrintMotd {{ 'yes' if (ssh_print_motd|bool) else 'no' }}
231
231
PrintLastLog {{ 'yes' if (ssh_print_last_log|bool) else 'no' }}
232
232
{% endif %}
233
233
234
- Banner {{ '/etc/ssh/banner.txt' if (ssh_banner|bool) else 'none' }}
234
+ Banner {{ ssh_banner_path if (ssh_banner|bool) else 'none' }}
235
235
236
236
{% if ansible_facts .os_family == 'Debian' %}
237
237
DebianBanner {{ 'yes' if (ssh_print_debian_banner|bool) else 'no' }}
You can’t perform that action at this time.
0 commit comments