繁体   English   中英

绑定到运行ansible的主机上的特定IP地址

[英]bind to specific IP address on host running ansible

我已将服务器指定为我的配置代理。 该系统分配了多个IP地址。 我需要明确使用特定的IP地址。

在我的托管ansible盒子上,它们被防火墙防火墙保护,仅接受来自分配给我的ansible供应代理的一个特定IP地址的连接。

如何强制ansibleansible-playbook绑定到特定的IP地址,以便将该IP地址用作我与ansible客户端的所有连接的来源?

在ssh中执行此操作的等效标志是-b ,对于ssh的描述如下: -b bind_address Use bind_address on the local machine as the source address of the connection. Only useful on systems with more than one address.

如果要模拟ssh -b的行为,则应该能够将-b bind_address参数添加到ssh_args配置文件中的ssh_args属性中。 这是此属性的文档

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM