bertvv/ansible-role-bind

Changed default behaviour for allow-transfer

Opened this issue · 0 comments

Hi,

We have made some changes to change the default behavior related with allow-transfer, if you don't configure any allowed host, the default config is allow-transfer any. So we have made the change in etc_named.conf.j2 template from:

{% if bind_acls|length != 0 %}
allow-transfer { {% for acl in bind_acls %}"{{ acl.name }}"; {% endfor %}};
{% endif %}

to:

{% if bind_acls|length != 0 %}
allow-transfer { {% for acl in bind_acls %}"{{ acl.name }}"; {% endfor %}};
{% else %}
allow-transfer { "none"; };
{% endif %}

Thanks!