damex.cloudflare.cloudflare_dns_record_info module – Ensure Cloudflare DNS record information is gathered
Note
This module is part of the damex.cloudflare collection (version 1.2.3).
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 damex.cloudflare.
To use it in a playbook, specify: damex.cloudflare.cloudflare_dns_record_info.
Synopsis
Gathers information about Cloudflare DNS records for a zone.
Returns all records or filters by type and name.
Parameters
Parameter |
Comments |
|---|---|
Cloudflare account API key. Required together with |
|
Cloudflare account email. Required together with |
|
Cloudflare API token. Required if Can be specified in |
|
DNS record name to filter by. |
|
DNS record type to filter by. Choices:
|
|
Zone identifier. Required if |
|
Zone domain name. Required if Resolved to zone identifier via the Cloudflare API. |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Supports check mode. |
|
Support: none |
Does not support diff mode. |
Examples
- name: Ensure all DNS record information is gathered
damex.cloudflare.cloudflare_dns_record_info:
zone_name: example.com
api_token: "{{ cloudflare_api_token }}"
register: cloudflare_dns_record_information
- name: Ensure A record information is gathered
damex.cloudflare.cloudflare_dns_record_info:
zone_name: example.com
api_token: "{{ cloudflare_api_token }}"
record: www
type: A
register: cloudflare_dns_record_information
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
DNS record information. Returned: always |
|
Record content. Returned: always |
|
Record identifier. Returned: always |
|
Record name. Returned: always |
|
Proxy status. Returned: always |
|
Record TTL. Returned: always |
|
Record type. Returned: always |