The vmware_host_firewall_facts module

As you will have already guessed, this module, like the other facts modules, is used to gather facts on the firewall configuration of all of the hosts within our cluster:

- name: Get facts on all cluster hosts  vmware_host_firewall_facts:    hostname: "{{ vsphere_host }}"    username: "{{ vsphere_username }}"    password: "{{ vsphere_password }}"    validate_certs: "no"    cluster_name: "my_cluster"

It can also gather for just a single host:

- name: Get facts on a single host  vmware_host_firewall_facts:    hostname: "{{ vsphere_host }}"    username: "{{ vsphere_username }}"    password: "{{ vsphere_password }}"    validate_certs: "no"    esxi_hostname: "{{ exsi_host }}"

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.