游戏手册文档表示-T将“在秒内覆盖连接超时(default=10)”。
在connect_timeout文件中的[persistent_connection]部分中,有command_timeout (默认为30秒)和command_timeout(默认为10秒)。
ansible-playbook文档会提示它是被覆盖的connect_timeout,但是页面指定的默认值与connect_timeout默认值不匹配,它与command_timeout默认值匹配。
那么,ansible-playbook命令上的-T标志是否覆盖connect_timeout,command_timeout,或其他与其中任何一个无关的超时?
发布于 2019-02-19 06:33:33
-T相当于DEFAULT_TIMEOUT配置设置。
DEFAULT_TIMEOUT:
default: 10
description: This is the default timeout for connection plugins to use.
env:
- {name: ANSIBLE_TIMEOUT}
ini:
- {key: timeout, section: defaults}
name: Connection timeout
type: integer对于ssh连接插件,它是否用作ConnectTimeout=<value>,意思是:
ConnectTimeout
Specifies the timeout (in seconds) used when connecting to the SSH server, instead of using the default system TCP timeout.
This value is used only when the target is down or really unreachable, not when it refuses the connection.command_timeout是关于:
PERSISTENT_COMMAND_TIMEOUT:
default: 10
description: This controls the amount of time to wait for response from remote device
before timing out presistent connection.
env:
- {name: ANSIBLE_PERSISTENT_COMMAND_TIMEOUT}
ini:
- {key: command_timeout, section: persistent_connection}
name: Persistence command timeout
type: inthttps://stackoverflow.com/questions/54757444
复制相似问题