community.dns.hosttech_dns_record – Add or delete a single record in Hosttech DNS service
This plugin is part of the community.dns collection (version 2.0.3).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install community.dns.
To use it in a playbook, specify:
New in version 2.0.0: of community.dns
Creates and deletes single DNS records in Hosttech DNS service.
If you do not want to add/remove values, but replace values, you will be interested in modifying a record set and not a single record. This is in particular important when working with
SOArecords. Use the community.dns.hosttech_dns_record_set module for working with record sets.
Records are matched by prefix / record name and value.
This module replaces
hosttech_dns_recordfrom community.dns before 2.0.0.
- name: Add a new.foo.com A record community.dns.hetzner_dns_record: state: present zone: foo.com record: new.foo.com type: A ttl: 7200 value: 220.127.116.11 hosttech_token: access_token - name: Remove a new.foo.com A record community.dns.hosttech_dns_record_set: state: present zone_name: foo.com record: new.foo.com type: A ttl: 7200 value: 18.104.22.168 hosttech_token: access_token