community.general.memset_dns_reload (8.5.0) — module

Request reload of Memset's DNS infrastructure,

Authors: Simon Weald (@glitchcrab)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Request a reload of Memset's DNS infrastructure, and optionally poll until it finishes.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Submit DNS reload and poll
  community.general.memset_dns_reload:
    api_key: 5eb86c9196ab03919abcf03857163741
    poll: true
  delegate_to: localhost

Inputs

    
poll:
    default: false
    description:
    - 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.
    type: bool

api_key:
    description:
    - The API key obtained from the Memset control panel.
    required: true
    type: str

Outputs

memset_api:
  contains:
    error:
      description: Whether the job ended in error state.
      returned: always
      sample: true
      type: bool
    finished:
      description: Whether the job completed before the result was returned.
      returned: always
      sample: true
      type: bool
    id:
      description: Job ID.
      returned: always
      sample: c9cc8ad2a3e3fb8c63ed83c424928ef8
      type: str
    status:
      description: Job status.
      returned: always
      sample: DONE
      type: str
    type:
      description: Job type.
      returned: always
      sample: dns
      type: str
  description: Raw response from the Memset API.
  returned: always
  type: complex