Tip
Check out the repository on GitHub
Unbound DNS-Blocklists¶
STATE: unstable
TESTS: Playbook
API Docs: unbound_dnsbl
Service Docs: Unbound DNS - Blocklists
Contribution¶
Thanks to @jiuka for developing this module!
Definition¶
For basic parameters see: Basic
Usage¶
Manage Unbound DNS blocklists and exceptions.
Examples¶
- hosts: localhost
gather_facts: false
module_defaults:
group/ansibleguy.opnsense.all:
firewall: 'opnsense.template.ansibleguy.net'
api_credential_file: '/home/guy/.secret/opn.key'
ansibleguy.opnsense.list:
target: 'unbound_dnsbl'
tasks:
# add optional parameters commented-out
# required ones normally
# add their default values to get a brief overview of how the module works
- name: Example
ansibleguy.opnsense.unbound_dnsbl:
type: atl
# safesearch: false
# lists: ['https://example.com/dns.blocklist']
# whitelists: ['ansibleguy.net']
# blocklists: ['example.net']
# wildcards: ['example.net']
# address: 192.168.254.254
# nxdomain: false
# enable: false
# state: 'absent'
# debug: false
- name: Configuring DNS Blocklists
ansibleguy.opnsense.unbound_dnsbl:
type: atl
enable: true
- name: Listing current config
ansibleguy.opnsense.list:
# target: 'unbound_dnsbl'
register: dnsbl_config
- name: Printing
ansible.builtin.debug:
var: dnsbl_config.data