I'm using Ansible Tower trying to create a Smart Inventory based on some Ansible Facts.
What's the syntax required to access the "facts" in a Smart Inventory?
I'm using Ansible Tower trying to create a Smart Inventory based on some Ansible Facts.
What's the syntax required to access the "facts" in a Smart Inventory?
Ansible Tower 文档对于以下内容有点神秘:Smart Inventory -> Smart Host Filter -> Dynamic Host。
Ansible Facts:Ansible Tower 中的“Key”按钮(又名图例/帮助)建议使用术语“facts”来访问 Ansible Facts。这是错误的,您需要使用“ansible_facts”来访问事实。
例子:
ansible_facts.ansible_lsb__major_release:"7"
变量: