---
title: Vmware Host Feature Info
slug: homologacao-atmosphere/vmware-host-feature-info
description: Learn how to gather information about the capacity feature of an ESXi host with this comprehensive module synopsis. Discover how to use the module, including the required parameters and examples. Please note that API write access is necessary, and the mod
createdAt: 2021-11-24T12:57:44.000Z
---

## Sinopse

- O módulo pode ser usado para para cloleta informações  sobre o recurso de capacidade de informações de um host ESXi quando um hostname ESXi ou Cluster name é dado.

## Parâmetros

| **Parâmetro**  | **Tipo** | **Escolhas \|&#x20;**<u>**Valor Padrão**</u> | **Comentários**                                                                                                                                                                                                              |
| -------------- | -------- | -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| cluster\_name  | string   |                                              | Nome do cluster do qual todos os sistermas do host serão usados. Informações vmhba sobre cada server ESXi serão retornados para cada cluster fornecido. Esse parâmetro é requerido se  `ESXI_HOSTNAME` não for especificado. |
| esxi\_hostname | string   |                                              | Nome do sistena host para trabalhar. Informação vmhba sobre este server ESXi será retornado. Este parâmtro é requerido se `CLUSTER_NAME`  não for especificado.                                                              |

## Notas[](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_datacenter_info_module.html#notes)

Observação

- Testado em ESXi 7.0.2
- Todos os módulos requerem acesso de gravação API e, portanto, não são suportados em uma licença ESXi gratuita.

## Exemplos

```yaml
- name: Gather feature capability info about all ESXi Hosts in given Cluster
  community.vmware.vmware_host_feature_info:
    hostname: '{{ vcenter_hostname }}'
    username: '{{ vcenter_username }}'
    password: '{{ vcenter_password }}'
    cluster_name: '{{ cluster_name }}'
  delegate_to: localhost
  register: all_cluster_hosts_info

- name: Check if ESXi is vulnerable for Speculative Store Bypass Disable (SSBD) vulnerability
  community.vmware.vmware_host_feature_info:
    hostname: "{{ vcenter_hostname }}"
    username: "{{ vcenter_username }}"
    password: "{{ vcenter_password }}"
    esxi_hostname: "{{ esxi_hostname }}"
  register: features_set
- set_fact:
    ssbd : "{{ item.value }}"
  loop: "{{ features_set.host_feature_info[esxi_hostname] |json_query(name) }}"
  vars:
    name: "[?key=='cpuid.SSBD']"
- assert:
    that:
      - ssbd|int == 1
  when: ssbd is defined
```

## Valores Retornados[](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_datacenter_info_module.html#return-values)

| **Chave**                                                                                                                                                    | **Tipo**   | **Retornado quando** | **Descrição**                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | -------------------- | ---------------------------------------------------------------- |
| hosts\_feature\_info [](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_host_feature_info_module.html#return-hosts_feature_info) | dictionary | success              | Metadata sobre o recurso da capacidade de informações de um host |

