community / community.general / 8.5.0 / module / udm_dns_zone Manage dns zones on a univention corporate server Authors: Tobias Rüetschi (@keachi)community.general.udm_dns_zone (8.5.0) — module
Install with ansible-galaxy collection install community.general:==8.5.0
collections: - name: community.general version: 8.5.0
This module allows to manage dns zones on a univention corporate server (UCS). It uses the python API of the UCS to create a new object or edit it.
- name: Create a DNS zone on a UCS community.general.udm_dns_zone: zone: example.com type: forward_zone nameserver: - ucs.example.com interfaces: - 192.0.2.1
mx: default: [] description: - List of MX servers. (Must declared as A or AAAA records). elements: str type: list ttl: default: 600 description: - Minimum TTL field that should be exported with any RR from this zone. type: int type: description: - Define if the zone is a forward or reverse DNS zone. - 'The available choices are: V(forward_zone), V(reverse_zone).' required: true type: str zone: aliases: - name description: - DNS zone name, for example V(example.com). required: true type: str retry: default: 1800 description: - Interval that should elapse before a failed refresh should be retried. type: int state: choices: - present - absent default: present description: - Whether the dns zone is present or not. type: str expire: default: 604800 description: - Specifies the upper limit on the time interval that can elapse before the zone is no longer authoritative. type: int contact: default: '' description: - Contact person in the SOA record. type: str refresh: default: 3600 description: - Interval before the zone should be refreshed. type: int interfaces: default: [] description: - List of interface IP addresses, on which the server should response this zone. Required if O(state=present). elements: str type: list nameserver: default: [] description: - List of appropriate name servers. Required if O(state=present). elements: str type: list