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:
parent
2f01f32259
commit
cb4292f5d0
1 changed files with 0 additions and 9 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue