unbound(role): make unbound thread number configurable
Some checks failed
/ Ansible Lint (pull_request) Failing after 2m34s
/ Ansible Lint (push) Failing after 2m36s
/ build (pull_request) Failing after 2m40s

This commit is contained in:
bitwhisker 2026-05-26 10:30:35 +02:00
commit c051fc6337
Signed by: bitwhisker
SSH key fingerprint: SHA256:KybIk/tusSKao6eLGY+ILlFa1rCrzwx66/acBAcKUqE
2 changed files with 3 additions and 2 deletions

View file

@ -7,8 +7,8 @@ server:
auto-trust-anchor-file: "/etc/unbound/trusted-key.key"
{% endif -%}
# use all CPUs
num-threads: {{ ansible_facts['processor_vcpus'] }}
# num of threads
num-threads: {{ unbound_thread_count | default(ansible_facts['processor_vcpus']) }}
# more cache memory
rrset-cache-size: 60m