Note
This plugin is part of the community.general collection (version 3.8.1).
You might already have this collection installed if you are using the ansible
package. 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.general
.
To use it in a playbook, specify: community.general.memset_dns_reload
.
Parameter | Choices/Defaults | Comments |
---|---|---|
api_key string / required | The API key obtained from the Memset control panel. | |
poll boolean |
| Boolean value, if set will poll the reload job's status and return when the job has completed (unless the 30 second timeout is reached first). If the timeout is reached then the task will not be marked as failed, but stderr will indicate that the polling failed. |
Note
- name: Submit DNS reload and poll community.general.memset_dns_reload: api_key: 5eb86c9196ab03919abcf03857163741 poll: 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 | always | Raw response from the Memset API. | |
error boolean | always | Whether the job ended in error state. Sample: True | |
finished boolean | always | Whether the job completed before the result was returned. Sample: True | |
id string | always | Job ID. Sample: c9cc8ad2a3e3fb8c63ed83c424928ef8 | |
status string | always | Job status. Sample: DONE | |
type string | always | Job type. Sample: dns |
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/memset_dns_reload_module.html