effectivelywild.technitium_dns.technitium_dns_rollover_dnskey module – Rollover DNSKEY for a DNSSEC-signed zone
Note
This module is part of the effectivelywild.technitium_dns collection (version 0.4.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 effectivelywild.technitium_dns
.
To use it in a playbook, specify: effectivelywild.technitium_dns.technitium_dns_rollover_dnskey
.
New in effectivelywild.technitium_dns 0.4.0
Synopsis
Generates and publishes a new private key for the given key that has to be rolled over.
The old private key and its associated DNSKEY record will be automatically retired and removed safely once the new key is active.
The zone must already be signed with DNSSEC.
This module is not idempotent as each rollover generates a new key.
Parameters
Parameter |
Comments |
---|---|
Port for the Technitium DNS API. Defaults to 5380 Default: |
|
API token for authentication |
|
Base URL for the Technitium DNS API |
|
The key tag of the private key to rollover |
|
Whether to validate SSL certificates when making API requests. Choices:
|
|
The name of the primary zone to rollover DNSKEY for |
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_get_dnssec_properties
Get DNSSEC properties for a zone
- effectivelywild.technitium_dns.technitium_dns_update_private_key
Update DNSSEC private key properties
Examples
- name: Rollover DNSKEY with tag 12345
technitium_dns_rollover_dnskey:
api_url: "http://localhost"
api_token: "myapitoken"
zone: "example.com"
key_tag: 12345
- name: Rollover DNSKEY with custom API port
technitium_dns_rollover_dnskey:
api_url: "http://localhost"
api_port: 5380
api_token: "myapitoken"
zone: "example.com"
key_tag: 67890
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Full API response from Technitium DNS server Returned: always Sample: |
|
Whether the module made changes Returned: always Sample: |
|
Whether the module failed Returned: always Sample: |
|
The key tag that was rolled over Returned: success Sample: |
|
Human readable message describing the result Returned: always Sample: |
|
The zone where the rollover was performed Returned: success Sample: |