Yet another facts module, this is a a new-style module; you have probably already guessed what the task will look like:
- name: Find out facts about the vmkernel on all the ESXi hosts vmware_vmkernel_facts: hostname: "{{ vsphere_host }}" username: "{{ vsphere_username }}" password: "{{ vsphere_password }}" validate_certs: "no" cluster_name: "my_cluster" register: cluster_vmks- name: Find out facts about the vmkernel on a single ESXi host vmware_vmkernel_facts: hostname: "{{ vsphere_host }}" username: "{{ vsphere_username }}" password: "{{ vsphere_password }}" validate_certs: "no" esxi_hostname: "{{ exsi_host }}" register: host_vmks