Manage DNS servers using Ansible #93

Open
jeltz wants to merge 45 commits from dns into master
Showing only changes of commit 6f32c9bc2c - Show all commits

View file

@ -104,10 +104,7 @@ template:
- id: default - id: default
storage: "{{ knotd__zones_dir }}" storage: "{{ knotd__zones_dir }}"
file: "%s.zone" file: "%s.zone"
semantic-checks: {{ knotd__semantic_checks
| ternary("on", "off") }}
zonefile-sync: -1 zonefile-sync: -1
zonefile-load: difference-no-serial
journal-content: changes journal-content: changes
journal-content: all journal-content: all
serial-policy: {{ knotd__serial_policy }} serial-policy: {{ knotd__serial_policy }}
@ -128,6 +125,11 @@ zone:
{% endif %} {% endif %}
{% if zone.master is defined %} {% if zone.master is defined %}
master: {{ zone.master }} master: {{ zone.master }}
zonefile-load: none
{% else %}
zonefile-load: difference-no-serial
semantic-checks: {{ knotd__semantic_checks
| ternary("on", "off") }}
{% endif %} {% endif %}
{% if zone.dnssec_policy is defined %} {% if zone.dnssec_policy is defined %}
dnssec-policy: {{ zone.dnssec_policy }} dnssec-policy: {{ zone.dnssec_policy }}