mirror of
https://github.com/roles-ansible/ansible_role_unbound.git
synced 2024-08-16 13:39:49 +02:00
Allow configureation of access-control
This commit is contained in:
parent
6948f130f3
commit
fbb65b84e6
4 changed files with 12 additions and 6 deletions
|
@ -10,9 +10,10 @@ Variables
|
|||
|
||||
| variable | default | explaination |
|
||||
| -------- | ------- | ------------ |
|
||||
| ``unbound_listen_addresses:`` | ``['127.0.0.1@53','::1@53']`` | define interfaces and ports where unbound should listen |
|
||||
| ``unbound__state:`` | ``present`` | Package state. *(use ``latest`` for explicit update)*
|
||||
| ``submodules_versioncheck:`` | ``false`` | run basic versions check. ``true`` is recomended. |
|
||||
| ``unbound_listen_addresses`` | ``['127.0.0.1@53','::1@53']`` | define interfaces and ports where unbound should listen |
|
||||
| ``unbound_access_control`` | ``['access-control: 127.0.0.1 allow', 'access-control: ::1 allow']`` | define access control |
|
||||
| ``unbound__state`` | ``present`` | Package state. *(use ``latest`` for explicit update)*
|
||||
| ``submodules_versioncheck`` | ``false`` | run basic versions check. ``true`` is recomended. |
|
||||
|
||||
Files
|
||||
-------
|
||||
|
|
|
@ -6,4 +6,8 @@ unbound_listen_addresses:
|
|||
- '127.0.0.1@53'
|
||||
- '::1@53'
|
||||
|
||||
unbound_access_control:
|
||||
- 'access-control: 127.0.0.1 allow'
|
||||
- 'access-control: ::1 allow'
|
||||
|
||||
unbound__state: 'present'
|
||||
|
|
|
@ -7,8 +7,9 @@ server:
|
|||
{% for address in unbound_listen_addresses %}
|
||||
interface: {{ address }}
|
||||
{% endfor %}
|
||||
access-control: 127.0.0.1 allow
|
||||
access-control: ::1 allow
|
||||
{% for accesscontrol in unbound_access_control %}
|
||||
{{ accesscontrol }}
|
||||
{% endfor %}
|
||||
|
||||
chroot: ""
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
playbook_version_number: 66 # should be integer
|
||||
playbook_version_number: 67 # should be integer
|
||||
playbook_version_path: 'role-unbound_roles-ansible_github.com.version'
|
||||
|
|
Loading…
Reference in a new issue