Merge "Add check to ClamAV task to prevent simeltaneous content updates"
This commit is contained in:
commit
dc798c7979
|
@ -182,10 +182,20 @@
|
||||||
- misc
|
- misc
|
||||||
- V-72213
|
- V-72213
|
||||||
|
|
||||||
|
- name: Check if ClamAV update process is already running
|
||||||
|
shell: "ps -ef | egrep [f]reshclam -q"
|
||||||
|
register: freshclam_proc
|
||||||
|
changed_when: False
|
||||||
|
failed_when: False
|
||||||
|
check_mode: no
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- name: Update ClamAV database
|
- name: Update ClamAV database
|
||||||
command: freshclam
|
command: freshclam
|
||||||
changed_when: False
|
changed_when: False
|
||||||
when:
|
when:
|
||||||
|
- freshclam_proc.rc != 0
|
||||||
- clamav_install_check.stat.exists
|
- clamav_install_check.stat.exists
|
||||||
- security_enable_virus_scanner | bool
|
- security_enable_virus_scanner | bool
|
||||||
- security_run_virus_scanner_update | bool
|
- security_run_virus_scanner_update | bool
|
||||||
|
|
Loading…
Reference in New Issue