Fix horrible freshclam default sysconfig file.
This commit is contained in:
parent
4638057c27
commit
783ebfa992
2 changed files with 27 additions and 0 deletions
24
roles/clamav/files/freshclam-sysconfig
Normal file
24
roles/clamav/files/freshclam-sysconfig
Normal file
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue