Increased timeout for certain actions like updating etc.
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ async def execute_playbook(session: meshctrl.Session, targets: dict, playbook: d
|
|||||||
round = 1
|
round = 1
|
||||||
for task in playbook["tasks"]:
|
for task in playbook["tasks"]:
|
||||||
output_text(("\033[1m\033[92m" + str(round) + ". Running: " + task["name"] + "\033[0m"), False)
|
output_text(("\033[1m\033[92m" + str(round) + ". Running: " + task["name"] + "\033[0m"), False)
|
||||||
response = await session.run_command(nodeids=targets, command=task["command"], ignore_output=False, timeout=300)
|
response = await session.run_command(nodeids=targets, command=task["command"], ignore_output=False, timeout=900)
|
||||||
|
|
||||||
task_batch = []
|
task_batch = []
|
||||||
for device in response:
|
for device in response:
|
||||||
|
|||||||
Reference in New Issue
Block a user