ansible / ansible.builtin / v2.5.11 / module / exo_dns_domain Manages domain records on Exoscale DNS API. | "added in version" 2.2 of ansible.builtin" Authors: René Moser (@resmo) preview | supported by communityansible.builtin.exo_dns_domain (v2.5.11) — module
pip
Install with pip install ansible==2.5.11
Create and remove domain records.
- name: Create a domain local_action: module: exo_dns_domain name: example.com
- name: Remove a domain local_action: module: exo_dns_domain name: example.com state: absent
name: description: - Name of the record. required: true state: choices: - present - absent default: present description: - State of the resource. required: false api_key: description: - API key of the Exoscale DNS API. - The ENV variable C(CLOUDSTACK_KEY) is used as default, when defined. type: str api_region: default: cloudstack description: - Name of the ini section in the C(cloustack.ini) file. - The ENV variable C(CLOUDSTACK_REGION) is used as default, when defined. type: str api_secret: description: - Secret key of the Exoscale DNS API. - The ENV variable C(CLOUDSTACK_SECRET) is used as default, when defined. type: str api_timeout: default: 10 description: - HTTP timeout to Exoscale DNS API. - The ENV variable C(CLOUDSTACK_TIMEOUT) is used as default, when defined. type: int validate_certs: default: true description: - Validate SSL certs of the Exoscale DNS API. type: bool
exo_dns_domain: contains: account_id: description: Your account ID returned: success sample: 34569 type: int auto_renew: description: Whether domain is auto renewed or not returned: success sample: false type: bool created_at: description: When the domain was created returned: success sample: '2016-08-12T15:24:23.989Z' type: string expires_on: description: When the domain expires returned: success sample: '2016-08-12T15:24:23.989Z' type: string id: description: ID of the domain returned: success sample: '2016-08-12T15:24:23.989Z' type: int lockable: description: Whether the domain is lockable or not returned: success sample: true type: bool name: description: Domain name returned: success sample: example.com type: string record_count: description: Number of records related to this domain returned: success sample: 5 type: int registrant_id: description: ID of the registrant returned: success sample: null type: int service_count: description: Number of services returned: success sample: 0 type: int state: description: State of the domain returned: success sample: hosted type: string token: description: Token returned: success sample: r4NzTRp6opIeFKfaFYvOd6MlhGyD07jl type: string unicode_name: description: Domain name as unicode returned: success sample: example.com type: string updated_at: description: When the domain was updated last. returned: success sample: '2016-08-12T15:24:23.989Z' type: string user_id: description: ID of the user returned: success sample: null type: int whois_protected: description: Whether the whois is protected or not returned: success sample: false type: bool description: API domain results returned: success type: complex