Use the nios_inventory
plug-in to query the NIOS Grid for host records, and use the response data to populate the inventory file.
The following table describes the parameters you can define in the nios_inventory
module:
Parameter | Required/Optional | Description |
---|---|---|
host | Required | Specifies the DNS host name or address for connecting to the remote instance of NIOS WAPI over REST. |
| Required | Specifies the user name to use for authenticating the connection to the remote instance of NIOS. |
| Required | Specifies the password to use for authenticating the connection to the remote instance of NIOS. |
| Optional | Contains the key/value pair that the plug-in uses to filter the host records to be returned. |
| Optional | Allows you to filter the returned host records based on the extensible attributes assigned to them. |
| Required | Defines the details of the connection:
For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic. |
| Required | The |
Examples
plugin: infoblox.nios_modules.nios_inventory
host: blox.example.com
username: admin