community.dns.infomaniak_dns_zone_info module – Retrieve zone information in Infomaniak DNS service
Note
This module is part of the community.dns collection (version 4.1.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 community.dns.
To use it in a playbook, specify: community.dns.infomaniak_dns_zone_info.
New in community.dns 4.1.0
Synopsis
Retrieves zone information in Infomaniak DNS service.
Parameters
Parameter |
Comments |
|---|---|
The token for Infomaniak’s DNS API. |
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Action group: community.dns.infomaniak |
Use |
|
Support: full This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Will return details on what has changed (or possibly needs changing in |
|
Support: full This action does not modify state. |
When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change. This assumes that the system controlled/queried by the module has not changed in a relevant way. |
Examples
- name: Retrieve details for foo.com zone
community.dns.infomaniak_dns_zone_info:
zone: foo.com
infomaniak_token: access_token
register: rec
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The ID of the zone. Note that Infomaniak’s API does not support accessing by zone ID, whence we use the zone’s name as the “ID” for purposes of the collection’s interface. The actual zone ID can be taken from Returned: success Sample: |
|
Extra information returned by the API. Returned: success |
|
Information on DNSSEC. Returned: success Sample: |
|
Whether DNSSEC is enabled for the domain. Returned: success Sample: |
|
List of nameservers the zone should have for using Infomaniak’s DNS. Returned: success Sample: |
|
The name of the zone. Returned: success Sample: |