ansible.builtin.script – Executes an inventory script that returns JSON¶
This module is part of
ansible-base and included in all Ansible
installations. In most cases, you can use the short module name
script even without specifying the
Despite that, we recommend you use the FQCN for easy linking to the module
documentation and to avoid conflicting with other collections that may have
the same module name.
New in version 2.4: of ansible.builtin
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.