diff --git a/docs/community.vmware.vmware_host_inventory_inventory.rst b/docs/community.vmware.vmware_host_inventory_inventory.rst deleted file mode 100644 index 5152b819d..000000000 --- a/docs/community.vmware.vmware_host_inventory_inventory.rst +++ /dev/null @@ -1,787 +0,0 @@ -.. _community.vmware.vmware_host_inventory_inventory: - - -************************************** -community.vmware.vmware_host_inventory -************************************** - -**VMware ESXi hostsystem inventory source** - - - -.. contents:: - :local: - :depth: 1 - - -Synopsis --------- -- Get VMware ESXi hostsystem as inventory hosts from VMware environment. -- Uses any file which ends with vmware.yml, vmware.yaml, vmware_host_inventory.yml, or vmware_host_inventory.yaml as a YAML configuration file. - - - -Requirements ------------- -The below requirements are needed on the local Ansible controller node that executes this inventory. - -- vSphere Automation SDK - For tag feature - - -Parameters ----------- - -.. raw:: html - -
Parameter | -Choices/Defaults | -Configuration | -Comments | -|
---|---|---|---|---|
-
- cache
-
-
- boolean
-
- |
-
-
|
-
- ini entries:
-
- [inventory] env:ANSIBLE_INVENTORY_CACHE
- |
-
- Toggle to enable/disable the caching of the inventory's source data, requires a cache plugin setup to work.
- |
- |
-
- cache_connection
-
-
- string
-
- |
- - | -
- ini entries:
-
- [defaults] [inventory] env:ANSIBLE_CACHE_PLUGIN_CONNECTION
- env:ANSIBLE_INVENTORY_CACHE_CONNECTION
- |
-
- Cache connection data or path, read cache plugin documentation for specifics.
- |
- |
-
- cache_plugin
-
-
- string
-
- |
-
- Default: "memory"
- |
-
- ini entries:
-
- [defaults] [inventory] env:ANSIBLE_CACHE_PLUGIN
- env:ANSIBLE_INVENTORY_CACHE_PLUGIN
- |
-
- Cache plugin to use for the inventory's source data.
- |
- |
-
- cache_prefix
-
-
- -
-
- |
-
- Default: "ansible_inventory_"
- |
-
- ini entries:
-
- [default] [defaults] [inventory] env:ANSIBLE_CACHE_PLUGIN_PREFIX
- env:ANSIBLE_INVENTORY_CACHE_PLUGIN_PREFIX
- |
-
- Prefix to use for cache plugin files/tables
- |
- |
-
- cache_timeout
-
-
- integer
-
- |
-
- Default: 3600
- |
-
- ini entries:
-
- [defaults] [inventory] env:ANSIBLE_CACHE_PLUGIN_TIMEOUT
- env:ANSIBLE_INVENTORY_CACHE_TIMEOUT
- |
-
- Cache duration in seconds
- |
- |
-
- compose
-
-
- dictionary
-
- |
-
- Default: {}
- |
- - | -
- Create vars from jinja2 expressions.
- |
- |
-
- filters
-
-
- list
- / elements=string
-
- |
-
- Default: []
- |
- - | -
- This option allows client-side filtering hosts with jinja templating.
- When server-side filtering is introduced, it should be preferred over this.
- |
- |
-
- groups
-
-
- dictionary
-
- |
-
- Default: {}
- |
- - | -
- Add hosts to group based on Jinja2 conditionals.
- |
- |
-
- hostname
-
-
- -
- / required
-
- |
- - | -
- env:VMWARE_HOST
- env:VMWARE_SERVER
- |
-
- Name of vCenter or ESXi server.
- |
- |
-
- hostnames
-
-
- list
- / elements=string
-
- |
-
- Default: ["config.name + \"_\" + config.uuid"]
- |
- - | -
- A list of templates in order of precedence to compose inventory_hostname.
- Ignores template if resulted in an empty string or None value.
- You can use property specified in properties as variables in the template.
- |
- |
-
- keyed_groups
-
-
- list
- / elements=dictionary
-
- |
-
- Default: [{"key": "config.guestId", "separator": ""}, {"key": "summary.runtime.powerState", "separator": ""}]
- |
- - | -
- Add hosts to group based on the values of a variable.
- |
- |
- |
-
- default_value
-
-
- string
-
- added in 2.12
- |
- - | -- | -
- The default value when the host variable's value is an empty string.
- This option is mutually exclusive with
- trailing_separator . |
-
- |
-
- key
-
-
- string
-
- |
- - | -- | -
- The key from input dictionary used to generate groups
- |
-
- |
-
- parent_group
-
-
- string
-
- |
- - | -- | -
- parent group for keyed group
- |
-
- |
-
- prefix
-
-
- string
-
- |
-
- Default: ""
- |
- - | -
- A keyed group name will start with this prefix
- |
-
- |
-
- separator
-
-
- string
-
- |
-
- Default: "_"
- |
- - | -
- separator used to build the keyed group name
- |
-
- |
-
- trailing_separator
-
-
- boolean
-
- added in 2.12
- |
-
-
|
- - | -
- Set this option to False to omit the
- separator after the host variable when the value is an empty string.This option is mutually exclusive with
- default_value . |
-
-
- leading_separator
-
-
- boolean
-
- added in 2.11
- |
-
- Default: "yes"
- |
- - | -
- Use in conjunction with keyed_groups.
- By default, a keyed group that does not have a prefix or a separator provided will have a name that starts with an underscore.
- This is because the default prefix is "" and the default separator is "_".
- Set this option to False to omit the leading underscore (or other separator) if no prefix is given.
- If the group name is derived from a mapping the separator is still used to concatenate the items.
- To not use a separator in the group name at all, set the separator for the keyed group to an empty string instead.
- |
- |
-
- password
-
-
- -
- / required
-
- |
- - | -
- env:VMWARE_PASSWORD
- |
-
- Password of vSphere user.
- Accepts vault encrypted variable.
- Accepts Jinja to template the value
- |
- |
-
- port
-
-
- integer
-
- |
-
- Default: 443
- |
-
- env:VMWARE_PORT
- |
-
- Port number used to connect to vCenter or ESXi Server.
- |
- |
-
- properties
-
-
- list
- / elements=string
-
- |
-
- Default: ["name", "config.cpuHotAddEnabled", "config.cpuHotRemoveEnabled", "config.instanceUuid", "config.hardware.numCPU", "config.template", "config.name", "config.uuid", "guest.hostName", "guest.ipAddress", "guest.guestId", "guest.guestState", "runtime.maxMemoryUsage", "customValue", "summary.runtime.powerState", "config.guestId"]
- |
- - | -
- Specify the list of VMware schema properties associated with the VM.
- These properties will be populated in hostvars of the given VM.
- Each value in the list can be a path to a specific property in VM object or a path to a collection of VM objects.
- config.name , config.uuid are required properties if hostnames is set to default.config.guestId , summary.runtime.powerState are required if keyed_groups is set to default.Please make sure that all the properties that are used in other parameters are included in this options.
- In addition to VM properties, the following are special values
- Use
- customValue to populate virtual machine's custom attributes. customValue is only supported by vCenter and not by ESXi.Use
- all to populate all the properties of the virtual machine. The value all is time consuming operation, do not use unless required absolutely.Please refer more VMware guest attributes which can be used as properties https://docs.ansible.com/ansible/latest/collections/community/vmware/docsite/vmware_scenarios/vmware_inventory_vm_attributes.html
- |
- |
-
- proxy_host
-
-
- string
-
- |
- - | -
- env:VMWARE_PROXY_HOST
- |
-
- Address of a proxy that will receive all HTTPS requests and relay them.
- The format is a hostname or a IP.
- This feature depends on a version of pyvmomi>=v6.7.1.2018.12.
- |
- |
-
- proxy_port
-
-
- integer
-
- |
- - | -
- env:VMWARE_PROXY_PORT
- |
-
- Port of the HTTP proxy that will receive all HTTPS requests and relay them.
- |
- |
-
- resources
-
-
- list
- / elements=dictionary
-
- |
-
- Default: []
- |
- - | -
- A list of resources to limit search scope.
- Each resource item is represented by exactly one
- 'vim_type_snake_case :list of resource names pair and optional nested resourcesKey name is based on snake case of a vim type name; e.g
- host_system correspond to vim.HostSystem See VIM Types
- |
- |
-
- strict
-
-
- boolean
-
- |
-
-
|
- - | -
- If
- yes make invalid entries a fatal error, otherwise skip and continue.Since it is possible to use facts in the expressions they might not always be available and we ignore those errors by default.
- |
- |
-
- use_extra_vars
-
-
- boolean
-
- added in 2.11
- |
-
-
|
-
- ini entries:
-
- [inventory_plugins] env:ANSIBLE_INVENTORY_USE_EXTRA_VARS
- |
-
- Merge extra vars into the available variables for composition (highest precedence).
- |
- |
-
- username
-
-
- -
- / required
-
- |
- - | -
- env:VMWARE_USER
- env:VMWARE_USERNAME
- |
-
- Name of vSphere user.
- Accepts vault encrypted variable.
- Accepts Jinja to template the value
- |
- |
-
- validate_certs
-
-
- boolean
-
- |
-
-
|
-
- env:VMWARE_VALIDATE_CERTS
- |
-
- Allows connection when SSL certificates are not valid.
- Set to
- false when certificates are not trusted. |
- |
-
- with_nested_properties
-
-
- boolean
-
- |
-
-
|
- - | -
- This option transform flatten properties name to nested dictionary.
- From 1.10.0 and onwards, default value is set to
- true . |
- |
-
- with_path
-
-
- boolean
-
- |
-
-
|
- - | -
- Include virtual machines path.
- Set this option to a string value to replace root name from 'Datacenters'.
- |
- |
-
- with_sanitized_property_name
-
-
- boolean
-
- |
-
-
|
- - | -
- This option allows property name sanitization to create safe property names for use in Ansible.
- Also, transforms property name to snake case.
- |
- |
-
- with_tags
-
-
- boolean
-
- |
-
-
|
- - | -
- Include tags and associated virtual machines.
- Requires 'vSphere Automation SDK' library to be installed on the given controller machine.
- Please refer following URLs for installation steps
-
- |
-