unbound(role): make unbound thread number configurable

This commit is contained in:
bitwhisker 2026-05-26 10:30:35 +02:00
commit a0d9fc2e77
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