arubanetworks / arubanetworks.aoscx / 4.3.2 / module / aoscx_mac Collects information on MAC configuration. | "added in version" 4.1.0 of arubanetworks.aoscx" Authors: Aruba Networks (@ArubaNetworks) preview | supported by certifiedarubanetworks.aoscx.aoscx_mac (4.3.2) — module
Install with ansible-galaxy collection install arubanetworks.aoscx:==4.3.2
collections: - name: arubanetworks.aoscx version: 4.3.2
This module retrieves information of MAC addresses from Aruba devices running the AOS-CX operating system. MAC addresses information will be printed out when the playbook execution is done with increased verbosity.
--- - name: Fetch all MAC addresses from all vlans aoscx_mac: all_vlans: true
- name: Fetch all MAC addresses from VLAN 1 aoscx_mac: vlan: 1
- name: Fetch MAC addresses from VLAN 3 that are static and dynamic. aoscx_mac: vlan: 3 sources: - static - dynamic
- name: Fetch MAC addresses from all VLANs that are static only. aoscx_mac: all_vlans: true sources: - static
vlan: description: 'VLAN ID the MAC addresses are attached to. This option is mutually exclusive with the all_vlans option. ' required: false type: int sources: choices: - dynamic - evpn - hsc - static - port-access-security - vrrp - vsx default: - dynamic - evpn - hsc - static - port-access-security - vrrp - vsx description: 'List of sources of the MAC addresses to filter which ones will be included in the output. ' elements: str required: false type: list all_vlans: description: 'Option to fetch all MACs from all VLANs in a device. This option is mutually exclusive with the `vlan` option. ' required: false type: bool
ansible_mac_addresses: description: The MAC addresses from given source(s) from given VLAN(s) returned: always type: dict