noderings.cloud.dns_geo_record module – Manage geo-routed DNS records in a NodeRings zone
Note
This module is part of the noderings.cloud collection (version 0.2.0).
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 noderings.cloud.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: noderings.cloud.dns_geo_record.
New in noderings.cloud 0.1.0
Synopsis
A geo-routed record answers differently depending on where the resolver is.
The most specific match wins, region before country before continent, and
defaultanswers everyone else.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9
Parameters
Parameter |
Comments |
|---|---|
How many times a request is retried after rate limiting (HTTP 429) or a gateway error (HTTP 502, 503 or 504). Orders (virtual machines, game servers, snapshots) are never retried blindly. Default: |
|
Timeout in seconds for a single HTTP request. Default: |
|
A NodeRings service-account token. Create one in the NodeRings console under If not set, the value of the |
|
Base URL of the NodeRings API. If not set, the value of the Default: |
|
Answers by continent code ( Default: |
|
Answers by ISO 3166-1 alpha-2 country code, for example Default: |
|
Answer for resolvers that match no other rule. Required when |
|
Record name relative to the zone. Use |
|
Organization to act in, sent as the Defaults to the organization the token belongs to. If not set, the value of the |
|
Answers by ISO 3166-2 subdivision such as Default: |
|
Whether the record should exist. Choices:
|
|
Time to live in seconds, 30 to 60. Default: |
|
Record type. Choices:
|
|
Whether to validate the API’s TLS certificate. Choices:
|
|
ID of the zone. |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Can run in check_mode and return changed status prediction without modifying the target. |
|
Support: full |
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode. |
Notes
Note
All modules in this collection belong to the
noderings.cloud.noderingsaction group, so connection options can be set once withmodule_defaults.
Examples
- name: Send Europe and North America to the nearest server
noderings.cloud.dns_geo_record:
zone: example.com
name: app
type: A
default: 203.0.113.10
continents:
EU: 198.51.100.20
NA: 203.0.113.10
countries:
JP: 192.0.2.30
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The record as stored. Empty after Returned: always |