community.general.memset_zone_domain (8.5.0) — module

Create and delete domains in Memset DNS zones

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

Manage DNS zone domains in a Memset account.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create the zone domain 'test.com'
- name: Create zone domain
  community.general.memset_zone_domain:
    domain: test.com
    zone: testzone
    state: present
    api_key: 5eb86c9196ab03919abcf03857163741
  delegate_to: localhost

Inputs

    
zone:
    description:
    - The zone to add the domain to (this must already exist).
    required: true
    type: str

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Indicates desired state of resource.
    type: str

domain:
    aliases:
    - name
    description:
    - The zone domain name. Ensure this value has at most 250 characters.
    required: true
    type: str

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

Outputs

memset_api:
  contains:
    domain:
      description: Domain name
      returned: always
      sample: example.com
      type: str
    id:
      description: Domain ID
      returned: always
      sample: b0bb1ce851aeea6feeb2dc32fe83bf9c
      type: str
  description: Domain info from the Memset API
  returned: when changed or state == present
  type: complex