summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tasks/rhel7stig/misc.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks/rhel7stig/misc.yml b/tasks/rhel7stig/misc.yml
index 8e9975d..56203d6 100644
--- a/tasks/rhel7stig/misc.yml
+++ b/tasks/rhel7stig/misc.yml
@@ -182,10 +182,20 @@
182 - misc 182 - misc
183 - V-72213 183 - V-72213
184 184
185- name: Check if ClamAV update process is already running
186 shell: "ps -ef | egrep [f]reshclam -q"
187 register: freshclam_proc
188 changed_when: False
189 failed_when: False
190 check_mode: no
191 tags:
192 - always
193
185- name: Update ClamAV database 194- name: Update ClamAV database
186 command: freshclam 195 command: freshclam
187 changed_when: False 196 changed_when: False
188 when: 197 when:
198 - freshclam_proc.rc != 0
189 - clamav_install_check.stat.exists 199 - clamav_install_check.stat.exists
190 - security_enable_virus_scanner | bool 200 - security_enable_virus_scanner | bool
191 - security_run_virus_scanner_update | bool 201 - security_run_virus_scanner_update | bool