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