Manage DNS servers using Ansible #93
2 changed files with 15 additions and 1 deletions
|
@ -20,5 +20,9 @@ knotd__zones_dir: "{{ knotd__database_dir }}/zones"
|
|||
knotd__semantic_checks: true
|
||||
knotd__serial_policy: increment
|
||||
knotd__zones: []
|
||||
knotd__soa_refresh: 1d
|
||||
knotd__soa_retry: 2h
|
||||
knotd__soa_expire: 1000h
|
||||
knotd__soa_ttl: 48h
|
||||
knotd__dnssec_validation: true
|
||||
...
|
||||
|
|
|
@ -30,7 +30,17 @@
|
|||
group: "{{ knotd__group }}"
|
||||
mode: u=rw,g=r,o=
|
||||
origin: "{{ item.key }}"
|
||||
soa: "{{ item.value.soa }}"
|
||||
soa:
|
||||
mname: "{{ item.value.soa.mname }}"
|
||||
rname: "{{ item.value.soa.rname }}"
|
||||
refresh: "{{ item.value.soa.refresh | default(knotd__soa_refresh)
|
||||
| community.general.to_seconds | int }}"
|
||||
retry: "{{ item.value.soa.retry | default(knotd__soa_retry)
|
||||
| community.general.to_seconds | int }}"
|
||||
expire: "{{ item.value.soa.expire | default(knotd__soa_expire)
|
||||
| community.general.to_seconds | int }}"
|
||||
ttl: "{{ item.value.soa.ttl | default(knotd__soa_ttl)
|
||||
| community.general.to_seconds | int }}"
|
||||
hosts: "{{ item.value.hosts | default(omit) }}"
|
||||
ns: "{{ item.value.ns | default(omit) }}"
|
||||
mx: "{{ item.value.mx | default(omit) }}"
|
||||
|
|
Loading…
Reference in a new issue