menandmice.ansible_micetro.dnsrecord (1.0.7) — module

Manage DNS records in the Micetro

| "added in version" 2.7 of menandmice.ansible_micetro"

Authors: Ton Kersten <t.kersten@atcomputing.nl> for Men&Mice

Install collection

Install with ansible-galaxy collection install menandmice.ansible_micetro:==1.0.7


Add to requirements.yml

  collections:
    - name: menandmice.ansible_micetro
      version: 1.0.7

Description

Manage DNS records in the Micetro.

Inputs

    
ttl:
    default: 0 (Same as zone)
    description: The Time-To-Live of the DNS record.
    required: false
    type: int

data:
    description:
    - The data that is added to the DNS record
    - The record data is a space-separated list when the resource type is one of MX, SRV,
      NAPTR, CAA, CERT, HINFO, TLSA
    - For MX and SRV the hostname should be the short name and not the FQDN
    required: true
    type: str

name:
    description:
    - The name of the DNS record.
    - Can either be partially or fully qualified.
    required: true
    type: str

aging:
    default: 0
    description:
    - The aging timestamp of dynamic records in AD integrated zones.
    - Hours since January 1, 1601, UTC.
    - Providing a non-zero value creates a dynamic record.
    required: false
    type: int

state:
    choices:
    - absent
    - present
    default: present
    description: The state of the properties.
    required: false
    type: bool

rrtype:
    choices:
    - A
    - AAAA
    - CNAME
    - CAA
    - DNAME
    - DLV
    - DNSKEY
    - DS
    - HINFO
    - LOC
    - MX
    - NAPTR
    - NS
    - NSEC3PARAM
    - PTR
    - RP
    - SOA
    - SPF
    - SRV
    - SSHFP
    - TLSA
    - TXT
    default: A
    description: Resource Record Type for this DNS record.
    required: false
    type: str

comment:
    description:
    - Comment string for the record.
    - Note that only records in static DNS zones can have a comment string
    required: false
    type: str

dnszone:
    description: The DNS zone where the action should take place.
    required: true
    type: str

enabled:
    default: false
    description:
    - True if the record is enabled.
    - If the record is disabled the value is false
    required: false
    type: bool

mm_provider:
    description: Definition of the Micetro API mm_provider.
    required: true
    suboptions:
      mm_password:
        description: password to login with into the API.
        no_log: true
        required: true
        type: str
      mm_url:
        description: Men&Mice API server to connect to.
        required: true
        type: str
      mm_user:
        description: userid to login with into the API.
        required: true
        type: str
    type: dict

Outputs

message:
  description: The output message from the Men&Mice System.
  returned: always
  type: str