如何在清单脚本中访问Ansible Tower清单源环境变量?

时间:2020-04-30 11:48:15

标签: python ansible ansible-inventory ansible-tower

在清单资源中,我具有以下变量:

enter image description here

如何在我的清单脚本(该清单的来源)中访问它?

我尝试了os.environ.get('test', test_id),但无法正常工作。

该脚本是用Python编写的。

0 个答案:

没有答案