script – Executes an inventory script that returns JSON¶
New in version 2.4.
The source provided must be an executable that returns Ansible inventory JSON
The source must accept
--host <hostname>as arguments.
--hostwill only be used if no
_metakey is present. This is a performance optimization as the script would be called per host otherwise.