effectivelywild.technitium_dns.technitium_dns_download_and_update_app module – Download and update an existing app
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_download_and_update_app.
New in effectivelywild.technitium_dns 0.9.0
Synopsis
Download an app zip file from a given URL and update an existing app on the DNS server.
This also supports “downgrading” to an earlier version by specifying an older version URL, however this is not idempotent.
The URL must start with
https://.
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 |
|
The name of the app to update |
|
The URL of the app zip file URL must start with |
|
Whether to validate SSL certificates when making API requests. Choices:
|
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_list_apps
List all installed apps
- effectivelywild.technitium_dns.technitium_dns_list_store_apps
List all available apps from the DNS App Store
- effectivelywild.technitium_dns.technitium_dns_download_and_install_app
Download and install a new app
- effectivelywild.technitium_dns.technitium_dns_uninstall_app
Uninstall an app from the DNS server
Examples
- name: Download and update Wild IP app
technitium_dns_download_and_update_app:
api_url: "http://localhost"
api_token: "myapitoken"
name: "Wild IP"
url: "https://download.technitium.com/dns/apps/WildIpApp.zip"
register: result
- debug:
var: result.updated_app
- name: Update app from DNS App Store
technitium_dns_download_and_update_app:
api_url: "http://localhost"
api_token: "myapitoken"
name: "Geo Continent"
url: "https://download.technitium.com/dns/apps/GeoContinentApp.zip"
- name: Get latest version URL from store and update app
block:
- name: List available apps from DNS App Store
technitium_dns_list_store_apps:
api_url: "http://localhost"
api_token: "myapitoken"
register: store_apps_list
- name: Update Query Logs app to latest version
technitium_dns_download_and_update_app:
api_url: "http://localhost"
api_token: "myapitoken"
name: "Query Logs (Sqlite)"
url: "{{ (store_apps_list.store_apps | selectattr('name', 'equalto', 'Query Logs (Sqlite)') | first).url }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Whether the module made changes Returned: always Sample: |
|
Whether the module failed Returned: always Sample: |
|
Human-readable message about the operation Returned: always Sample: |
|
Information about the updated app Returned: success |
|
List of DNS application components Returned: always |
|
Class path of the DNS app component Returned: always Sample: |
|
Description of the DNS app component Returned: always Sample: |
|
Whether this is an APP record request handler Returned: always Sample: |
|
Whether this is an authoritative request handler Returned: always Sample: |
|
Whether this is a post processor Returned: always Sample: |
|
Whether this is a query logger Returned: always Sample: |
|
Whether this is a request blocking handler Returned: always Sample: |
|
Whether this is a request controller Returned: always Sample: |
|
Name of the updated app Returned: always Sample: |
|
Version of the updated app Returned: always Sample: |