Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

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

nameRequired

Specifies the fully qualified host name to add or remove from
NIOS.

network_viewRequiredSpecifies 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.
extattrsOptionalSpecifies extensible attributes for the DNS view object.
stateOptional

Specifies the state of the DNS view instance in NIOS. Set one of the following values:

  • present (default): Configures the object.
  • absent: Removes the object.
commentOptional

Describes the DNS view object.

provider

Required

A dictionary object that contains connection details.

  • host: DNS host name or IP address to connect to the remote instance of NIOS.
  • username: User name to use for authenticating the connection to the remote instance.
  • password: Password to use for authenticating the connection to the remote instance.

For information on additional fields you can define, see the list of subparameters.

connectionRequiredThe 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

  • No labels