diff --git a/roles/clamav/files/freshclam-sysconfig b/roles/clamav/files/freshclam-sysconfig new file mode 100644 index 0000000000..2ca4e92ece --- /dev/null +++ b/roles/clamav/files/freshclam-sysconfig @@ -0,0 +1,24 @@ +## When changing the periodicity of freshclam runs in the crontab, +## this value must be adjusted also. Its value is the timespan between +## two subsequent freshclam runs in minutes. E.g. for the default +## +## | 0 */3 * * * ... +## +## crontab line, the value is 180 (minutes). +# FRESHCLAM_MOD= + +## A predefined value for the delay in seconds. By default, the value is +## calculated by the 'hostid' program. This predefined value guarantees +## constant timespans of 3 hours between two subsequent freshclam runs. +## +## This option accepts two special values: +## 'disabled-warn' ... disables the automatic freshclam update and +## gives out a warning +## 'disabled' ... disables the automatic freshclam silently +# FRESHCLAM_DELAY= + + +### !!!!! REMOVE ME !!!!!! +### REMOVE ME: By default, the freshclam update is disabled to avoid +### REMOVE ME: network access without prior activation +#FRESHCLAM_DELAY=disabled-warn # REMOVE ME diff --git a/roles/clamav/tasks/main.yml b/roles/clamav/tasks/main.yml index bd5c288885..675c02de36 100644 --- a/roles/clamav/tasks/main.yml +++ b/roles/clamav/tasks/main.yml @@ -24,6 +24,9 @@ - name: setup the freshclam configuration copy: src=freshclam.conf dest=/etc/freshclam.conf +- name: enable freshclam by fixing the stupid default sysconfig + copy: src=freshclam-sysconfig dest=/etc/sysconfig/freshclam + - name: setup the freshclam cron job copy: src=freshclam-cron dest=/etc/cron.daily/freshclam