【发布时间】:2023-02-06 16:36:28
【问题描述】:
下面是剧本中的 sn-p。在为每个循环项运行命令后,如何打印消息。就像是。
image.pyc is now running for item1
image.pyc is now running for item2
... 等等
- name: Image Server(s)
command: python3 image.pyc {{item}} "{{systemVersion}}"
register: async_out
async: 7200
poll: 0
with_items: "{{hostinfo_input.hosts}}"
【问题讨论】:
标签: ansible