effectivelywild.technitium_dns.technitium_dns_publish_all_keys module – Publish all generated DNSSEC private keys in a zone
Note
This module is part of the effectivelywild.technitium_dns collection (version 0.9.1).
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_publish_all_keys.
New in effectivelywild.technitium_dns 0.4.0
Synopsis
Publishes all private keys that have state set as Generated by adding associated DNSKEY records for them.
Once published, the keys will be automatically activated.
For Key Signing Keys (KSK), once the state is set to Ready you can then safely replace the old DS record from the parent zone with a new DS key.
Once the new DS record is published at the parent zone, the DNS server will automatically detect and set the KSK state to Active.
The zone must already be signed with DNSSEC.
Parameters
Parameter |
Comments |
|---|---|
Port for the Technitium DNS API. Defaults to 5380 Default: |
|
API token for authentication |
|
Base URL for the Technitium DNS API |
|
Whether to validate SSL certificates when making API requests. Choices:
|
|
The name of the primary zone to publish keys for |
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_add_private_key
Add DNSSEC private key to a zone
- effectivelywild.technitium_dns.technitium_dns_get_dnssec_properties
Get DNSSEC properties for a zone
Examples
- name: Publish all generated keys in example.com
technitium_dns_publish_all_keys:
api_url: "http://localhost"
api_token: "myapitoken"
zone: "example.com"
- name: Publish all generated keys with custom API port
technitium_dns_publish_all_keys:
api_url: "http://localhost"
api_port: 5380
api_token: "myapitoken"
zone: "example.com"
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: |
|
List of keys that were in Generated state before publishing Returned: success Sample: |
|
Human readable message describing the result Returned: always Sample: |
|
Number of keys that were published Returned: success Sample: |