You've already forked ansible-role-bind9
This commit is contained in:
@ -2,6 +2,23 @@
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
{% if bind9_controls is defined and bind9_controls | length > 0 %}
|
||||
controls {
|
||||
{% for control in bind9_controls %}
|
||||
inet {{ control.inet }} port {{ control.port }} allow {
|
||||
{% for acl in control.acls %}
|
||||
{{ acl }};
|
||||
{% endfor %}
|
||||
} keys {
|
||||
{% for name in control.tsig_keys %}
|
||||
"{{ name }}";
|
||||
{% endfor %}
|
||||
};
|
||||
|
||||
{% endfor %}
|
||||
};
|
||||
{% endif %}
|
||||
|
||||
options {
|
||||
|
||||
# This specifies which hosts are allowed to ask ordinary DNS questions.
|
||||
@ -246,4 +263,4 @@ statistics-channels {
|
||||
};
|
||||
{% endfor %}
|
||||
};
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
7
templates/etc/rndc.key.j2
Normal file
7
templates/etc/rndc.key.j2
Normal file
@ -0,0 +1,7 @@
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
key "{{ bind9_rndc_key.name }}" {
|
||||
algorithm {{ bind9_rndc_key.algorithm }};
|
||||
secret "{{ bind9_rndc_key.secret }}";
|
||||
};
|
Reference in New Issue
Block a user