arubanetworks / arubanetworks.aoscx / 4.3.2 / module / aoscx_dns Create or Delete DNS Client configuration on AOS-CX | "added in version" 2.8.0 of arubanetworks.aoscx" Authors: Aruba Networks (@ArubaNetworks) preview | supported by certifiedarubanetworks.aoscx.aoscx_dns (4.3.2) — module
Install with ansible-galaxy collection install arubanetworks.aoscx:==4.3.2
collections: - name: arubanetworks.aoscx version: 4.3.2
This modules provides configuration management of DNS on AOS-CX devices.
--- - name: DNS configuration creation aoscx_dns: mgmt_nameservers: "Primary": "10.10.2.10" "Secondary": "10.10.2.10" domain_name: "hpe.com" domain_list: 0: "hp.com" 1: "aru.com" 2: "sea.com" name_servers: 0: "4.4.4.8" 1: "4.4.4.10" host_v4_address_mapping: "host1": "5.5.44.5" "host2": "2.2.44.2" vrf: "green"
- name: DNS configuration update aoscx_dns: mgmt_nameservers: "Primary": "10.10.2.15" "Secondary": "10.10.2.25" domain_name: "hpe.com" domain_list: 0: "hpe.com" 1: "aruba.com" 2: "seach.com" name_servers: 0: "4.4.4.10" 1: "4.4.4.12" host_v4_address_mapping: "host1": "5.5.5.5" "host2": "2.2.45.2" vrf: "green" state: update
- name: DNS configuration deletion aoscx_dns: mgmt_nameservers: "Primary": "10.10.2.15" "Secondary": "10.10.2.25" domain_name: "hp.com" domain_list: 0: "hpe.com" 1: "aruba.com" 2: "seach.com" name_servers: 0: "4.4.4.10" 1: "4.4.4.12" host_v4_address_mapping: "host1": "5.5.5.5" "host2": "2.2.45.2" vrf: "green" state: delete
vrf: description: VRF name where DNS configuration is added. required: true type: str state: choices: - create - update - delete default: create description: Create or Update or Delete DNS configuration on the switch. required: false type: str domain_list: description: 'Domain list names to be used for address resolution, keyed by the resolution priority order. ' required: false type: dict domain_name: description: 'Domain name used for name resolution by the DNS client, if ''domain_list'' is not configured. ' required: false type: str name_servers: description: 'Name servers to be used for address resolution, keyed by the resolution priority order. ' required: false type: dict mgmt_nameservers: description: 'Primary and secondary nameservers on mgmt interface. The key of the dictionary is primary or secondary and value is the respective IP address. ' required: false type: dict host_v4_address_mapping: description: 'List of static host address configurations and the IPv4 address associated with them. ' required: false type: dict host_v6_address_mapping: description: 'List of static host address configurations and the IPv6 address associated with them. ' required: false type: dict