New in version 2.2.
Create and remove domain records.
parameter | required | default | choices | comments |
---|---|---|---|---|
api_key | no | API key of the Exoscale DNS API. |
||
api_region | no | cloudstack | Name of the ini section in the cloustack.ini file. |
|
api_secret | no | Secret key of the Exoscale DNS API. |
||
api_timeout | no | 10 | HTTP timeout to Exoscale DNS API. |
|
name | yes | Name of the record. |
||
state | no | present |
| State of the resource. |
validate_certs | no | True | Validate SSL certs of the Exoscale DNS API. |
# Create a domain. - local_action: module: exo_dns_domain name: example.com # Remove a domain. - local_action: module: exo_dns_domain name: example.com state: absent
Common return values are documented here Common Return Values, the following are the fields unique to this module:
name | description | returned | type | sample | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
exo_dns_domain | API domain results | success | dictionary | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contains: |
|
Note
As Exoscale DNS uses the same API key and secret for all services, we reuse the config used for Exscale Compute based on CloudStack. The config is read from several locations, in the following order. The CLOUDSTACK_KEY
, CLOUDSTACK_SECRET
environment variables. A CLOUDSTACK_CONFIG
environment variable pointing to an .ini
file, A cloudstack.ini
file in the current working directory. A .cloudstack.ini
file in the users home directory. Optionally multiple credentials and endpoints can be specified using ini sections in cloudstack.ini
. Use the argument api_region
to select the section name, default section is cloudstack
.
Note
This module does not support multiple A records and will complain properly if you try.
Note
More information Exoscale DNS can be found on https://community.exoscale.ch/documentation/dns/.
Note
This module supports check mode and diff.
For more information on what this means please read Extras Modules
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.
© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/exo_dns_domain_module.html