test using a list of records

This commit is contained in:
2023-10-05 15:57:02 +02:00
parent 8270ba251c
commit 1377468c37
3 changed files with 29 additions and 13 deletions

View File

@@ -1,5 +1,11 @@
---
- hosts: localhost
remote_user: root
vars:
records:
- record_name: test1
record_value: 1.2.3.4
record_type: "A"
- record_name: test2
record_value: foobar.opendoor.fr.
record_type: CNAME
roles:
- tco.dns
- { role: tco.dns, dns_action: "delete", dns_records: "{{ records }}" }