kpfleming.powerdns_auth.tsigkey module – Manages a TSIG key in a PowerDNS Authoritative server
Note
This module is part of the kpfleming.powerdns_auth collection (version 24.3.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 kpfleming.powerdns_auth
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: kpfleming.powerdns_auth.tsigkey
.
Synopsis
This module allows a task to manage the presence and content of a TSIG key in a PowerDNS Authoritative server.
Requirements
The below requirements are needed on the host that executes this module.
bravado
Parameters
Parameter |
Comments |
---|---|
The message digest algorithm, as specified by RFC 2845 and its updates, which will be used to validate requests including this key. Required when Choices:
|
|
Key (token) used to authenticate to the API endpoint in the server. |
|
Path of the OpenAPI (Swagger) API spec document in Default: |
|
URL of the API endpoint in the server. Default: |
|
The base-64 encoded key value. |
|
Name of the key to be managed. |
|
ID of the server instance which holds the key. Default: |
|
If If If Choices:
|
Examples
%YAML 1.2
---
- name: check that key exists
pdns_auth_tsigkey:
name: key1
state: exists
api_key: 'foobar'
- name: create key with default algorithm
pdns_auth_tsigkey:
name: key2
state: present
api_key: 'foobar'
- name: remove key
pdns_auth_tsigkey:
name: key2
state: absent
api_key: 'foobar'
- name: create key with algorithm and content
pdns_auth_tsigkey:
name: key3
state: present
api_key: 'foobar'
algorithm: hmac-sha256
key: '+8fQxgYhf5PVGPKclKnk8ReujIfWXOw/aEzzPPhDi6AGagpg/r954FPZdzgFfUjnmjMSA1Yu7vo6DQHVoGnRkw=='
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Information about the key Returned: always |
|
The message digest algorithm, as specified by RFC 2845 and its updates, which will be used to validate requests including this key. Returned: always |
|
Indicate whether the key exists Returned: always |
|
The base-64 encoded key value. Returned: always |
|
Name Returned: always |
Authors
Kevin P. Fleming (@kpfleming)