Commit 4c4daa22 authored by Chris Croome's avatar Chris Croome

less clamav processes

parent e6c10097
......@@ -9,9 +9,9 @@
var: ansible_processor_vcpus
verbosity: 1
- name: "Set a fact for the numver of ClamAV threads based on half the number of CPUs rounded upo to the nearest whole number"
- name: "Set a fact for the numver of ClamAV threads based on a quarter of the number of CPUs rounded up to the nearest whole number"
set_fact:
nextcloud_clamav_threads: "{{ ( ansible_processor_vcpus * 0.5 ) | round(0, 'ceil') | int }}"
nextcloud_clamav_threads: "{{ ( ansible_processor_vcpus * 0.25 ) | round(0, 'ceil') | int }}"
- name: Print the max ClamAV threads
debug:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment