【发布时间】:2019-10-02 16:10:37
【问题描述】:
我正在使用命令模块执行剧本 当我手动运行命令时,该命令将执行 20 分钟相同的命令我正在执行 ansible playbook 我收到 ssh 会话超时错误我该如何克服这个错误
ansible-playbook -i hots test.yml -T 1500
ansible-playbook -i hots test.yml --timeout 1500
tasks:
- name: executing the command
command: -------------
retries: 30
我已尝试使用 shell 或命令来执行 playbook
tasks:
- name: executing the create foldr
command: echo "hi"
- name: executing the command
command: -------------
retries: 30
如何设置执行我的剧本 3o 分钟的时间段
或完成命令执行
在我的剧本中,我在我的剧本中运行了多个命令模块,所有模块都在简单执行中,但是一个命令模块需要时间来执行命令
【问题讨论】: