The vmware_host_dns_facts module

A simple module that gathers facts on the DNS configuration of your VMware ESXi hosts follows:

- name: gather facts on dns config  vmware_host_dns_facts:    hostname: "{{ vsphere_host }}"    username: "{{ vsphere_username }}"    password: "{{ vsphere_password }}"    validate_certs: "no"    cluster_name: "my_cluster"

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.