/
DTC Server

DTC Server

Use the nios_dtc_server module to create, update, or remove instances of the DTC server object from a NIOS Grid.

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

Parameter

Required/Optional

Description

Parameter

Required/Optional

Description

name

Required

Specifies the display name of the DTC server.

host

Required

Specifies the IP address (A response) or FQDN (CNAME response) of the server.

extattrs

Optional

Specifies extensible attributes for the DTC server object.

state

Optional

Specifies the state of the DTC server instance in NIOS.
Set one of the following values:

  • present (default): Configures the object.

  • absent: Removes the object.

comment

Optional

Describes the DTC server object.

provider

Required

Define 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_dtc_server module must be run locally.

Examples

name: Configure a DTC server
infoblox.nios_modules.nios_dtc_server:
  name: test.dtc.server
  host: 192.160.10.1
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local



name: Add a comment to a DTC server
infoblox.nios_modules.nios_dtc_server:
  name: test.dtc.server
  host: 192.160.10.1
  comment: this is a test comment
  state: present
  provider:
    host: host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local