ansible.builtin.memset_zone_domain (v2.9.27) — module

Create and delete domains in Memset DNS zones.

| "added in version" 2.6 of ansible.builtin"

Authors: Simon Weald (@glitchcrab)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
  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

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

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

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

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