Note
This plugin is part of the community.general collection.
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.memset_zone
.
Parameter | Choices/Defaults | Comments |
---|---|---|
api_key string / required | The API key obtained from the Memset control panel. | |
force boolean |
| Forces deletion of a zone and all zone domains/zone records it contains. |
name string / required | The zone nickname; usually the same as the main domain. Ensure this value has at most 250 characters. aliases: nickname | |
state string / required |
| Indicates desired state of resource. |
ttl string |
| The default TTL for all records created in the zone. This must be a valid int from https://www.memset.com/apidocs/methods_dns.html#dns.zone_create. |
Note
# Create the zone 'test' - name: Create zone community.general.memset_zone: name: test state: present api_key: 5eb86c9196ab03919abcf03857163741 ttl: 300 delegate_to: localhost # Force zone deletion - name: Force delete zone community.general.memset_zone: name: test state: absent api_key: 5eb86c9196ab03919abcf03857163741 force: true delegate_to: localhost
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description | |
---|---|---|---|
memset_api complex | when state == present | Zone info from the Memset API | |
domains list / elements=string | always | List of domains in this zone | |
id string | always | Zone id Sample: b0bb1ce851aeea6feeb2dc32fe83bf9c | |
nickname string | always | Zone name Sample: example.com | |
records list / elements=string | always | List of DNS records for domains in this zone | |
ttl integer | always | Default TTL for domains in this zone Sample: 300 |
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/memset_zone_module.html