perf: ansible runner logs (#9655)

Co-authored-by: feng <1304903146@qq.com>
pull/9656/head
fit2bot 2023-02-20 20:14:06 +08:00 committed by GitHub
parent b76ed67c9c
commit 137d69a539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -151,8 +151,12 @@ class BasePlaybookManager:
return sub_playbook_path
def get_runners(self):
# TODO 临时打印一下 找一下打印不出日志的原因
print('ansible runner: 任务开始执行')
assets_group_by_platform = self.get_assets_group_by_platform()
print('ansible runner: 获取资产分组', assets_group_by_platform)
runners = []
for platform, assets in self.get_assets_group_by_platform().items():
for platform, assets in assets_group_by_platform.items():
assets_bulked = [assets[i:i + self.bulk_size] for i in range(0, len(assets), self.bulk_size)]
for i, _assets in enumerate(assets_bulked, start=1):