Use the nios_dns_view
module to create, update, or remove instances of DNS view objects from a NIOS Grid.
The following table describes the parameters you can define in the nios_dns_view
module:
Parameter | Required/Optional | Description |
---|---|---|
name | Required | Specifies the fully qualified host name to add or remove from |
network_view | Required | Specifies the name of the network view to which the DNS view must be assigned. If a value is not specified, the default network view configured in NIOS is used. |
extattrs | Optional | Specifies extensible attributes for the DNS view object. |
state | Optional | Specifies the state of the DNS view instance in NIOS. Set one of the following values:
|
comment | Optional | Describes the DNS view object. |
| Required | A dictionary object that contains connection details.
For information on additional fields you can define, see the list of subparameters. |
connection | Required | The nios_dns_view module must be run locally. |
Examples
name: configure a new dns view instance
infoblox.nios_modules.nios_dns_view:
name: ansible-dns
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>connection: local
name: update the dns view instance
infoblox.nios_modules.nios_dns_view:
name: {new_name: ansible-dns-new, old_name: ansible-dns}
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>connection: local