clamav: Allow all logged users to scan files
This commit is contained in:
parent
075be34b51
commit
f8762c5a00
1 changed files with 17 additions and 1 deletions
|
@ -9,13 +9,29 @@
|
|||
- clamav-update
|
||||
- clamd
|
||||
|
||||
- name: fix socket directory permissions
|
||||
copy:
|
||||
dest: /etc/tmpfiles.d/clamd.scan.conf
|
||||
content: "d /run/clamd.scan 711 clamscan clamscan"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart clamd
|
||||
|
||||
- name: enable clamd local socket
|
||||
lineinfile:
|
||||
path: /etc/clamd.d/scan.conf
|
||||
regexp: "^#LocalSocket .*"
|
||||
regexp: "^#?LocalSocket .*"
|
||||
line: "LocalSocket /run/clamd.scan/clamd.sock"
|
||||
notify: restart clamd
|
||||
|
||||
- name: allow everyone to connect local socket
|
||||
lineinfile:
|
||||
path: /etc/clamd.d/scan.conf
|
||||
regexp: "^#?LocalSocketMode .*"
|
||||
line: "LocalSocketMode 666"
|
||||
notify: restart clamd
|
||||
|
||||
- name: link clamd service
|
||||
file:
|
||||
dest: /etc/systemd/system/clamd@scan.service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue