community / community.general / 0.1.1 / module / udm_dns_record Manage dns entries on a univention corporate server Authors: Tobias Rüetschi (@keachi) preview | supported by communitycommunity.general.udm_dns_record (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
This module allows to manage dns records on a univention corporate server (UCS). It uses the python API of the UCS to create a new object or edit it.
# Create a DNS record on a UCS - udm_dns_record: name: www zone: example.com type: host_record data: - a: 192.0.2.1
data: default: [] description: - 'Additional data for this record, e.g. [''a'': ''192.0.2.1'']. Required if C(state=present).' required: false name: description: - Name of the record, this is also the DNS record. E.g. www for www.example.com. required: true type: choices: - host_record - alias - ptr_record - srv_record - txt_record description: - Define the record type. C(host_record) is a A or AAAA record, C(alias) is a CNAME, C(ptr_record) is a PTR record, C(srv_record) is a SRV record and C(txt_record) is a TXT record. required: true zone: description: - Corresponding DNS zone for this record, e.g. example.com. required: true state: choices: - present - absent default: present description: - Whether the dns record is present or not. required: false