1.4.0
- add support to add/delete muliple DNS records for one Name
- new paramter
purge
with alias parameterreplace
,overwrite
andsolo
to be compatible with other ansible dns modules.
- new paramter
deleting a single A record
$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
dns.osuv.de has address 1.1.1.1
dns.osuv.de has address 8.8.4.4
To delete just 1.1.1.1
do
- name: delete single A record
markuman.hetzner_dns.record:
zone_name: osuv.de
name: dns
value: 1.1.1.1
type: A
state: absent
Will result in (after TTL is over).
$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
dns.osuv.de has address 8.8.4.4
delete all records
$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
dns.osuv.de has address 1.1.1.1
dns.osuv.de has address 8.8.4.4
To delete all records from above, do
- name: delete all A records that match 'name:' value
markuman.hetzner_dns.record:
zone_name: osuv.de
name: dns
type: A
state: absent
add a record
$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
To add a new record, do
- name: append A record
markuman.hetzner_dns.record:
zone_name: osuv.de
name: dns
value: 8.8.4.4
type: A
purge: no
Will result in
$ host dns.osuv.de
dns.osuv.de has address 8.8.8.8
dns.osuv.de has address 8.8.4.4