effectivelywild.technitium_dns.technitium_dns_check_for_update module – Check for available updates
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_check_for_update.
New in effectivelywild.technitium_dns 0.5.0
Synopsis
Check if a software update is available.
Returns update information including current version, available version, and download links.
Parameters
Parameter |
Comments |
|---|---|
Port for the Technitium DNS API. Defaults to 5380 Default: |
|
API token for authenticating with the Technitium DNS API |
|
Base URL for the Technitium DNS API |
|
Whether to validate SSL certificates when making API requests. Choices:
|
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_list_sessions
List active user sessions from Technitium DNS server
Examples
- name: Check for updates on Technitium DNS server
technitium_dns_check_for_update:
api_url: "http://localhost"
api_token: "myapitoken"
register: update_result
- debug:
var: update_result.update_info
- name: Display update availability
debug:
msg: "Update available: {{ update_result.update_info.updateAvailable }}"
when: update_result.update_info.updateAvailable is defined
- name: Show current and available versions
debug:
msg: "Current: {{ update_result.update_info.currentVersion }}, Available: {{ update_result.update_info.updateVersion }}"
when: update_result.update_info.updateAvailable
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Whether the module made changes (always false for check operations) Returned: always Sample: |
|
Whether the module failed Returned: always Sample: |
|
Update information from the Technitium DNS server Returned: always |
|
Link to the change log Returned: when update is available Sample: |
|
Current version of the DNS server Returned: always Sample: |
|
Direct download link for the update Returned: when update is available and link is provided Sample: |
|
Link to update instructions Returned: when update is available Sample: |
|
Whether an update is available Returned: always Sample: |
|
Detailed message about the update Returned: when update is available Sample: |
|
Title of the update notification Returned: when update is available Sample: |
|
Version number of the available update Returned: always Sample: |