kpfleming.powerdns_auth.rrset module – Manages an RRset in a zone of PowerDNS Authoritative server
Note
This module is part of the kpfleming.powerdns_auth collection (version 25.2.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.rrset
.
Synopsis
This module can create, delete or update an RRset inside a zone of PowerDNS Authoritative server.
Requirements
The below requirements are needed on the host that executes this module.
bravado
Parameters
Parameter |
Comments |
---|---|
RR of type A. At least one RR type is required if |
|
IPv4 address. |
|
Whether or not this RR is disabled. Choices:
|
|
RR of type AAAA. At least one RR type is required if |
|
IPv6 address. |
|
Whether or not this RR is disabled. 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: |
|
Certificate Authority Authorization RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Critical flag for CAA record. Choices:
|
|
Property tag for CAA record. Choices:
|
|
Property value for CAA record. |
|
Canonical name RR. At least one RR type is required if |
|
Canonical domain name. |
|
Whether or not this RR is disabled. Choices:
|
|
DNS Key RR for DNSSEC. At least one RR type is required if |
|
Algorithm used for the key. |
|
Whether or not this RR is disabled. Choices:
|
|
Key flags field. Choices:
|
|
Protocol field. Choices:
|
|
Base64 encoded public key. |
|
Delegation Signer RR for DNSSEC. At least one RR type is required if |
|
Algorithm used for signing. |
|
Digest value. |
|
Digest algorithm type. Choices:
|
|
Whether or not this RR is disabled. Choices:
|
|
Key tag field. |
|
Host information RR. At least one RR type is required if |
|
CPU type. |
|
Whether or not this RR is disabled. Choices:
|
|
Operating system. |
|
HTTPS service binding RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Service parameters. |
|
Priority of the target host. |
|
Target hostname. |
|
Whether or not to keep existing records. Choices:
|
|
Location RR. At least one RR type is required if |
|
Altitude coordinate. |
|
Whether or not this RR is disabled. Choices:
|
|
Horizontal precision. Default: |
|
Latitude coordinate. |
|
Longitude coordinate. |
|
Size of the location. Default: |
|
Vertical precision. Default: |
|
Mail exchange RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Mail server hostname. |
|
Priority preference for mail delivery. |
|
Name of the RRset Required if |
|
Name Authority Pointer RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Flags field. |
|
Order field for processing records. |
|
Preference field for records with same order. |
|
Regular expression for substitution. |
|
Replacement domain name. |
|
Services field. |
|
Name server RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Name server hostname. |
|
Pointer RR for reverse DNS lookup. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Domain name for reverse lookup. |
|
Represents a list of RRs. Required if |
|
The content of the RR. |
|
Whether or not this RR is disabled. Choices:
|
|
Responsible person RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Mailbox domain name of responsible person. |
|
Domain name for TXT record with contact info. |
|
ID of the server instance which holds the key. Default: |
|
Start of Authority RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Expire time in seconds. |
|
Minimum TTL in seconds. |
|
Primary master name server. |
|
Refresh interval in seconds. |
|
Retry interval in seconds. |
|
Email address of zone administrator. |
|
Serial number of the zone. |
|
Sender Policy Framework RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
SPF policy strings. |
|
Service RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
TCP or UDP port number. |
|
Priority of the target host. |
|
Target hostname. |
|
Relative weight for records with same priority. |
|
SSH fingerprint RR. At least one RR type is required if |
|
SSH key algorithm. Choices:
|
|
Whether or not this RR is disabled. Choices:
|
|
SSH key fingerprint. |
|
Fingerprint type. Choices:
|
|
If If If If If Choices:
|
|
Service binding RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Service parameters. |
|
Priority of the target host. |
|
Target hostname. |
|
Transport Layer Security Authentication RR. At least one RR type is required if |
|
Certificate association data. |
|
Whether or not this RR is disabled. Choices:
|
|
Matching type. Choices:
|
|
Selector field. Choices:
|
|
Certificate usage. Choices:
|
|
TTL of the records, in seconds. Default: |
|
Text RR. At least one RR type is required if |
|
Whether or not this RR is disabled. Choices:
|
|
Text strings. |
|
Type of resource record (e.g. A, PTR…). Required if |
|
Name of the zone |
Examples
%YAML 1.2
---
- name: Creating an RRset of RR type A
kpfleming.powerdns_auth.rrset:
api_key: foo
zone_name: zone.example.
name: ns.zone.example.
type: A
records:
- content: 192.168.0.1
- name: Creating an RRset of RR type A
kpfleming.powerdns_auth.rrset:
api_key: foo
zone_name: zone.example.
name: ns.zone.example.
A:
- address: 192.168.0.1
- name: Deleting an RRset
kpfleming.powerdns_auth.rrset:
api_key: foo
zone_name: zone.example.
name: ns.zone.example.
type: A
- name: Replacing RR in an RRset
kpfleming.powerdns_auth.rrset:
api_key: foo
zone_name: zone.example.
name: ns.zone.example.
A:
- address: 192.168.1.1
- name: Adding RR to an RRset
kpfleming.powerdns_auth.rrset:
api_key: foo
zone_name: zone.example.
name: ns.zone.example.
keep: true
NS:
- host: ns1.example.
- name: Deleting RR in RRset
kpfleming.powerdns_auth.rrset:
api_key: foo
zone_name: zone.example.
name: ns.zone.example.
state: absent
keep: true
NS:
- host: ns1.example.
- name: Listing all RRsets in a zone
kpfleming.powerdns_auth.rrset:
api_key: foo
zone_name: zone.example.
state: exists
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
whether the provided name and type lead to existing RRset(s) Returned: when state is exists and name and/or type provided |
|
name of the RRset Returned: always Sample: |
|
list of existing RRsets or RRsets after changes are made Returned: always |
|
list of comments on the RRset Returned: success |
|
name of the RRset Returned: success |
|
RRs list Returned: success |
|
TTL of the RRs, in seconds. Returned: success |
|
RR type Returned: success |
Authors
Mohamed Chamrouk (@mohamed-chamrouk)