ansible / ansible.builtin / v2.16.5 / inventory / script Executes an inventory script that returns JSON | "added in version" 2.4 of ansible.builtin" Authors: unknownansible.builtin.script (v2.16.5) — inventory
pip
Install with pip install ansible-core==2.16.5
The source provided must be an executable that returns Ansible inventory JSON
The source must accept C(--list) and C(--host <hostname>) as arguments. C(--host) will only be used if no C(_meta) key is present. This is a performance optimization as the script would be called per host otherwise.
always_show_stderr: default: true description: Toggle display of stderr even when script was successful env: - name: ANSIBLE_INVENTORY_PLUGIN_SCRIPT_STDERR ini: - key: always_show_stderr section: inventory_plugin_script type: boolean version_added: 2.5.1 version_added_collection: ansible.builtin