The vmware_vmkernel_facts module

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

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.