move record state to vars, support removal

This commit is contained in:
Josh Lay 2022-04-20 23:25:27 -05:00
parent 0e6228b751
commit 2d4dc4ac48
Signed by: jlay
GPG key ID: B265E45CACAD108A
4 changed files with 14 additions and 13 deletions

View file

@ -1,8 +0,0 @@
domain: sampledomain.local
records:
- name: 'subdomain'
value: '127.0.0.1'
type: A
- name: 'subdomain'
value: '::1'
type: AAAA

View file

@ -0,0 +1,10 @@
domain: sampledomain.local
records:
- name: 'subdomain' # create a silly localhost subdomain.sampledomain.io A record (IPv4)
value: '127.0.0.1'
type: A
state: present
- name: 'subdomain' # remove equally silly subdomain.sampledomain.io AAAA record (IPv6 local)
value: '::1'
type: AAAA
state: absent