clamav: Fix restart handler calls

This commit is contained in:
Timo Makinen 2022-10-30 22:49:45 +00:00
parent 42e0ccb037
commit 7228ab184d

View file

@ -15,21 +15,21 @@
mode: 0644 mode: 0644
owner: root owner: root
group: "{{ ansible_wheel }}" group: "{{ ansible_wheel }}"
notify: refresh clamd socket directory notify: Refresh clamd socket directory
- name: Enable clamd local socket - name: Enable clamd local socket
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/clamd.d/scan.conf path: /etc/clamd.d/scan.conf
regexp: "^#?LocalSocket .*" regexp: "^#?LocalSocket .*"
line: "LocalSocket /run/clamd.scan/clamd.sock" line: "LocalSocket /run/clamd.scan/clamd.sock"
notify: restart clamd notify: Restart clamd
- name: Allow everyone to connect local socket - name: Allow everyone to connect local socket
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/clamd.d/scan.conf path: /etc/clamd.d/scan.conf
regexp: "^#?LocalSocketMode .*" regexp: "^#?LocalSocketMode .*"
line: "LocalSocketMode 666" line: "LocalSocketMode 666"
notify: restart clamd notify: Restart clamd
- name: Enable services - name: Enable services
ansible.builtin.service: ansible.builtin.service: