The below requirements are needed on the host that executes this module.
Parameter | Choices/Defaults | Comments |
---|---|---|
data - | Default: [] | Additional data for this record, e.g. ['a': '192.0.2.1']. Required if state=present . |
name - / required | Name of the record, this is also the DNS record. E.g. www for www.example.com. | |
state - |
| Whether the dns record is present or not. |
type - / required |
| Define the record type. host_record is a A or AAAA record, alias is a CNAME, ptr_record is a PTR record, srv_record is a SRV record and txt_record is a TXT record. |
zone - / required | Corresponding DNS zone for this record, e.g. example.com. |
# Create a DNS record on a UCS - udm_dns_record: name: www zone: example.com type: host_record data: - a: 192.0.2.1
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/udm_dns_record_module.html