27 lines
472 B
YAML
27 lines
472 B
YAML
---
|
|
|
|
- name: Virus scanning services
|
|
become: yes
|
|
register: clam_svc
|
|
copy:
|
|
src: "clamav/{{ item }}"
|
|
dest: /usr/lib/systemd/system/
|
|
owner: root
|
|
group: root
|
|
mode: 0664
|
|
loop:
|
|
- freshclam.service
|
|
- freshclam.timer
|
|
- clamscan.service
|
|
- clamscan.timer
|
|
|
|
- name: Enable timers
|
|
become: yes
|
|
loop:
|
|
- freshclam.timer
|
|
- clamscan.timer
|
|
service:
|
|
name: "{{ item }}"
|
|
state: restarted
|
|
enabled: yes
|