clamav: Fix enabling and starting service

Correct way to enable instantiated services is to just run
"systemctl enable name@arg.service". This will automatically create
required service files based on "name@.service". Disabling service
again removes required files.
This commit is contained in:
Timo Makinen 2021-03-12 16:17:50 +00:00
parent 2f01f32259
commit cb4292f5d0

View file

@ -32,15 +32,6 @@
line: "LocalSocketMode 666"
notify: restart clamd
- name: link clamd service
file:
dest: /etc/systemd/system/clamd@scan.service
src: /lib/systemd/system/clamd@.service
state: link
owner: root
group: "{{ ansible_wheel }}"
follow: false
- name: enable services
service:
name: "{{ item }}"