effectivelywild.technitium_dns.technitium_dns_update_private_key module – Update DNSSEC private key properties
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_update_private_key
.
New in effectivelywild.technitium_dns 0.3.0
Synopsis
Updates the properties of an existing DNSSEC private key in a zone.
The zone must already be signed with DNSSEC and the key must exist.
Currently supports updating the rollover days property.
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 be updated |
|
The frequency in days that the DNS server must automatically rollover the private key Valid range is 0-365 days where 0 disables rollover |
|
Whether to validate SSL certificates when making API requests. Choices:
|
|
The name of the primary zone containing the private key |
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: Update private key rollover to 90 days
technitium_dns_update_private_key:
api_url: "http://localhost"
api_token: "myapitoken"
zone: "example.com"
key_tag: 1234
rollover_days: 90
- name: Disable automatic rollover for a key
technitium_dns_update_private_key:
api_url: "http://localhost"
api_token: "myapitoken"
zone: "example.com"
key_tag: 5678
rollover_days: 0
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: |
|
Information about the updated private key Returned: success Sample: |
|
Human readable message describing the result Returned: always Sample: |