community.general.memset_dns_reload module – Request reload of Memset’s DNS infrastructure,
Note
This module is part of the community.general collection (version 10.1.0).
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
.
Synopsis
Request a reload of Memset’s DNS infrastructure, and optionally poll until it finishes.
Parameters
Parameter |
Comments |
---|---|
The API key obtained from the Memset control panel. |
|
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. Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
Notes
Note
DNS reload requests are a best-effort service provided by Memset; these generally happen every 15 minutes by default, however you can request an immediate reload if later tasks rely on the records being created. An API key generated via the Memset customer control panel is required with the following minimum scope -
dns.reload
. If you wish to poll the job status to wait until the reload has completed, thenjob.status
is also required.
Examples
- name: Submit DNS reload and poll
community.general.memset_dns_reload:
api_key: 5eb86c9196ab03919abcf03857163741
poll: true
delegate_to: localhost
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Raw response from the Memset API. Returned: always |
|
Whether the job ended in error state. Returned: always Sample: |
|
Whether the job completed before the result was returned. Returned: always Sample: |
|
Job ID. Returned: always Sample: |
|
Job status. Returned: always Sample: |
|
Job type. Returned: always Sample: |