1
0
Fork 0
forked from infra/ansible

basessh: allow tcp forwarding on noc as well as bastion.

We sometimes use forwarding here to access mgmt devices.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2026-05-29 10:41:46 -07:00
commit 141940d1ad

View file

@ -40,8 +40,8 @@ UsePAM yes
AllowAgentForwarding no
X11Forwarding no
PermitTunnel no
{% if ansible_hostname.startswith(('bastion')) %}
# This is a bastion host, we need tcp forwarding here.
{% if ansible_hostname.startswith(('bastion')) or ansible_hostname.startswith(('noc')) %}
# This is a bastion or noc host, we need tcp forwarding there.
AllowTcpForwarding yes
{% else %}
AllowTcpForwarding no