1
0
Fork 0
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:
L3D 2021-07-16 19:57:46 +02:00 committed by GitHub
commit a94935f080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 6 deletions

View file

@ -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
-------

View file

@ -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'

View file

@ -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: ""

View file

@ -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'