Ensure the quarantine directory exists

This commit is contained in:
2021-07-13 05:03:40 +00:00
parent 599d2c922b
commit 33f99de4fe
3 changed files with 11 additions and 1 deletions

View File

@@ -74,6 +74,14 @@
loop: '{{ ensure_clamav.seboolean_list }}'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
- name: 'ensure quarantine directory'
when:
- ansible_system == 'Linux'
- ensure_clamav is defined
- quarantine_directory is defined
ansible.builtin.file:
path: '{{ quarantine_directory }}'
state: 'directory'
- name: 'ensure configurations'
when:
- ansible_system == 'Linux'