我使用的是一个python脚本,它从rest api中提取,然后用JSON构建并打印出一个清单。与这里的问题非常相似,how to use json file consisting of host info as input to ansible inventory 然而,我的脚本需要请求从restapi中提取数据,但是看起来Ansible没有这个包?in parse
raise AnsibleError("Inventory script (%s) had an execution error: %s