effectivelywild.technitium_dns.technitium_dns_update_cluster_node_ip module – Update cluster node IP address
Note
This module is part of the effectivelywild.technitium_dns collection (version 1.1.2).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install effectivelywild.technitium_dns.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: effectivelywild.technitium_dns.technitium_dns_update_cluster_node_ip.
New in effectivelywild.technitium_dns 1.0.0
Synopsis
Update the current cluster node’s IP address.
This can be called at both Primary and Secondary nodes.
Use this when the node’s IP address has changed.
Requirements
The below requirements are needed on the host that executes this module.
Technitium DNS Server v14.0 or later
Parameters
Parameter |
Comments |
|---|---|
Port for the Technitium DNS API. Defaults to 5380 Default: |
|
API token for authenticating with the Technitium DNS API |
|
Base URL for the Technitium DNS API |
|
The new IP address to be updated for the current node. |
|
The node domain name for which this API call is intended. When unspecified, the current node is used. This parameter can only be used when clustering is initialized. |
|
Whether to validate SSL certificates when making API requests. Choices:
|
Notes
Note
This operation requires Administration Modify permission.
Can be run on both Primary and Secondary nodes.
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_init_cluster
Initialize a new cluster
- effectivelywild.technitium_dns.technitium_dns_init_join_cluster
Join a cluster
- effectivelywild.technitium_dns.technitium_dns_get_cluster_state
Get cluster state information
Examples
- name: Update current node's IP address
effectivelywild.technitium_dns.technitium_dns_update_cluster_node_ip:
api_url: "http://localhost"
api_token: "myapitoken"
ip_address: "192.168.10.200"
register: result
- name: Display updated cluster state
debug:
var: result.cluster_state
- name: Update specific node's IP address
effectivelywild.technitium_dns.technitium_dns_update_cluster_node_ip:
api_url: "http://localhost"
api_token: "myapitoken"
node: "server2.example.com"
ip_address: "192.168.10.201"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Whether the module made changes Returned: always Sample: |
|
Complete cluster state after updating IP address Returned: always |
|
The cluster domain name Returned: always Sample: |
|
Whether the cluster is initialized Returned: always Sample: |
|
List of nodes in the cluster (IP should be updated for the specified node) Returned: always |
|
Node ID Returned: success Sample: |
|
Node IP address (updated) Returned: success Sample: |
|
Node domain name Returned: success Sample: |
|
Node type Returned: success Sample: |
|
Interval in seconds for config refresh Returned: always Sample: |
|
Interval in seconds for config retry Returned: always Sample: |
|
The DNS server domain name Returned: always Sample: |
|
Interval in seconds for heartbeat refresh Returned: always Sample: |
|
Interval in seconds for heartbeat retry Returned: always Sample: |
|
Technitium DNS Server version Returned: always Sample: |
|
Whether the module failed Returned: always Sample: |
|
Status message Returned: always Sample: |