noderings.cloud.dns_zone module – Manage NodeRings DNS zones and DNSSEC
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_zone.
New in noderings.cloud 0.1.0
Synopsis
Creates or deletes a hosted DNS zone, and turns DNSSEC signing on or off.
After creating a zone, point your domain’s nameservers at the
assigned_nameserversofzoneat your registrar.
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: |
|
Ask the API to re-check whether the domain is delegated to NodeRings nameservers, and return the result. Choices:
|
|
After turning it on, publish Choices:
|
|
Stop signing even while the DS record is still published at the parent. This breaks resolution for validating resolvers until the DS is removed, so remove the DS at the registrar first. Choices:
|
|
With Records in the zone are always deleted with it. Choices:
|
|
The domain, for example |
|
Organization to act in, sent as the Defaults to the organization the token belongs to. If not set, the value of the |
|
Whether the zone should exist. Choices:
|
|
Whether to validate the API’s TLS certificate. Choices:
|
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: Host example.com on NodeRings DNS with DNSSEC
noderings.cloud.dns_zone:
name: example.com
dnssec: true
register: zone
- name: Show what to set at the registrar
ansible.builtin.debug:
msg:
- "Nameservers: {{ zone.zone.assigned_nameservers | join(', ') }}"
- "DS record: {{ zone.dnssec.ds }}"
- name: Delete a zone and all its records
noderings.cloud.dns_zone:
name: old-example.com
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
DNSSEC state of the zone. Returned when Returned: when |
|
Signing algorithm. Returned: success |
|
The zone’s public key. Returned: success |
|
The DS record to publish at the registrar. Returned: success |
|
Whether the DS was found at the parent zone. Returned: success |
|
Key tag of the signing key. Returned: success |
|
Returned: success |
|
The zone. Empty after Returned: always Sample: |