/
Forward/Stub Server Name Server Group

Forward/Stub Server Name Server Group

Use the nios_nsgroup_forwardstubserver module to create, update, or remove a name server group object of type ‘Forward/Stub Server’ from NIOS. A forward/stub name server group is a collection of one or more external name servers. For more information about forward/stub server name server groups, see the Using Name Server Groups topic in the Infoblox NIOS Documentation.

The following table describes the parameters you can define in the nios_nsgroup_forwardstubserver module:

Parameter

Required/Optional

Description

Parameter

Required/Optional

Description

name

Required

Specifies the name of this forward or stub name server group that needs to be managed.

external_servers

Required

Specifies the list of external servers to be used.
Configure the following subparameters for each name server in the list:

  • name (required): Specifies the name of the external name server.

  • address(required): Specifies the IP address of the external name server.

extattrs

Optional

Specifies extensible attributes for the DNS name server group object.

state

Optional

Specifies the state of the DNS name server group instance on the NIOS server.
Set one of the following values:

  • present (default): creates or updates the group.

  • absent: Removes the group.

comment

Optional

Describes the DNS name server group object.

provider

Required

Defines the details of the connection:

  • host: The DNS host name or IP address to connect to the remote instance of NIOS.

  • username: The user name to use for authenticating the connection to the remote instance.

  • password: The password to use for authenticating the connection to the remote instance.

For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic.

connection

Required

The nios_nsgroup_forwardstubserver module must be run locally.

Examples

name: create infoblox nameserver forward/stub group
infoblox.nios_modules.nios_nsgroup_forwardstubserver:
name: my-forwardstub-group
comment: "this is a forward/stub nameserver group"
external_servers:
- name: first
address: 192.168.0.10
- name: second
address: 192.168.0.20
state: present
provider:
host: <nios_hostname_or_hostip>
  username: <nios_username>
  password: <nios_password>
connection: local