effectivelywild.technitium_dns.technitium_dns_set_user_details module – Set user account profile details in Technitium DNS server
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_set_user_details
.
New in effectivelywild.technitium_dns 0.4.0
Synopsis
Change user account profile details in Technitium DNS server.
Allows modifying display name, username, password, enabled/disabled status, session timeout, and group memberships.
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 |
|
Set true to disable the user account and delete all its active sessions Choices:
|
|
The display name for the user account |
|
The number of iterations for PBKDF2 SHA256 password hashing. Only used with newPassword option. |
|
A list of group names that the user must be set as a member |
|
A new password to reset the user account password |
|
A new username for renaming the user account |
|
A session timeout value in seconds for the user account |
|
The username for the user account to modify |
|
Whether to validate SSL certificates when making API requests Choices:
|
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_create_user
Create a user account in Technitium DNS server
- effectivelywild.technitium_dns.technitium_dns_delete_user
Delete a user from Technitium DNS server
- effectivelywild.technitium_dns.technitium_dns_get_user_details
Get user account details from Technitium DNS server
- effectivelywild.technitium_dns.technitium_dns_list_users
List all users from Technitium DNS server
Examples
- name: Update user display name
technitium_dns_set_user_details:
api_url: "http://localhost"
api_token: "myapitoken"
username: "testuser"
displayName: "Updated Test User"
- name: Disable user account
technitium_dns_set_user_details:
api_url: "http://localhost"
api_token: "myapitoken"
username: "testuser"
disabled: true
- name: Change user groups and session timeout
technitium_dns_set_user_details:
api_url: "http://localhost"
api_token: "myapitoken"
username: "testuser"
memberOfGroups:
- "DNS Administrators"
- "DHCP Administrators"
sessionTimeoutSeconds: 3600
- name: Reset user password
technitium_dns_set_user_details:
api_url: "http://localhost"
api_token: "myapitoken"
username: "testuser"
newPassword: "NewSecurePassword123!"
iterations: 100000
- name: Rename user account
technitium_dns_set_user_details:
api_url: "http://localhost"
api_token: "myapitoken"
username: "oldusername"
newUsername: "newusername"
- name: Check what would change (check mode)
technitium_dns_set_user_details:
api_url: "http://localhost"
api_token: "myapitoken"
username: "testuser"
displayName: "New Display Name"
disabled: false
check_mode: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Complete raw API response from Technitium DNS Returned: always |
|
Updated user details from the API Returned: always |
|
Whether the user account is disabled Returned: always Sample: |
|
Display name of the user Returned: always Sample: |
|
List of groups the user is a member of Returned: always Sample: |
|
Session timeout in seconds Returned: always Sample: |
|
Username of the user account Returned: always Sample: |
|
API response status Returned: always Sample: |
|
Whether the module made changes Returned: always Sample: |
|
Dictionary showing what changed, with current and desired values Returned: when changes are made Sample: |
|
Whether the module failed Returned: always Sample: |
|
Human readable message describing the result Returned: always Sample: |