Skip to content

Commit c53d376

Browse files
committed
do not force type of gatewayports-var
this way it can be a bool or a string. we also now test for it Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
1 parent 4cb67ed commit c53d376

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

molecule/ssh_hardening_custom_tests/converge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- root
2222
network_ipv6_enable: true
2323
ssh_allow_tcp_forwarding: "yes"
24-
ssh_gateway_ports: true
24+
ssh_gateway_ports: "clientspecified"
2525
ssh_allow_agent_forwarding: true
2626
ssh_server_permit_environment_vars: "yes"
2727
ssh_server_accept_env_vars: PWD HTTP_PROXY

roles/ssh_hardening/meta/argument_specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ argument_specs:
8888
you can specify `'yes'`, `'no'`, `'all'`, `'local'`or`'remote'`.
8989
ssh_gateway_ports:
9090
default: false
91-
type: bool
91+
type: raw
9292
description: Set to `false` to disable binding forwarded ports to non-loopback
9393
addresses. Set to `true` to force binding on wildcard address. Set to `clientspecified`
9494
to allow the client to specify which address to bind to.

0 commit comments

Comments
 (0)