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:
parent
63315f4602
commit
141940d1ad
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue