mgdis.ovh.domain (0.1.2) — module

| "added in version" 0.1.0 of mgdis.ovh"

Authors: unknown

Install collection

Install with ansible-galaxy collection install mgdis.ovh:==0.1.2


Add to requirements.yml

  collections:
    - name: mgdis.ovh
      version: 0.1.2

Description

Manage DNS zone records


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add entry
  mgdis.ovh.domain:
    domain: example.com
    target: "192.2.0.1"
    name: "www"
    state: "present"

Inputs

    
ttl:
    description:
    - TTL associated with the DNS record
    required: false
    type: int

name:
    description:
    - The name to add or delete in the zone
    required: true
    type: str

state:
    choices:
    - present
    - absent
    description:
    - Wether to add or delete the record
    required: false
    type: str

domain:
    description:
    - The targeted domain
    required: true
    type: str

target:
    description:
    - The value of the record
    - It can be an IP, a FQDN, a text...
    required: true
    type: str

record_type:
    choices:
    - A
    - AAAA
    - CAA
    - CNAME
    - DKIM
    - DMARC
    - DNAME
    - LOC
    - MX
    - NAPTR
    - NS
    - PTR
    - SPF
    - SRV
    - SSHFP
    - TLSA
    - TXT
    default: A
    description:
    - The DNS record type
    type: str