Skip to content
Snippets Groups Projects
Commit 0d049107 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: make sure to remove all residuals of ClamAV from the system (packages, services)

parent 6eb912c4
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,14 @@
- name: uninstall clamav packages (Debian)
ansible.builtin.apt:
name: "clamav-daemon"
name: [
"clamav",
"clamav-daemon",
"clamav-freshclam",
]
state: absent
autoremove: true
purge: true
when: ansible_os_family == "Debian"
tags: [apt]
......@@ -52,6 +58,7 @@
loop:
- "clamav-freshclam.service"
- "clamd@scan.service"
- "clamd@{{ ansible_hostname }}.service"
when: ansible_os_family == "RedHat"
changed_when: false
failed_when: false
......@@ -74,7 +81,7 @@
- name: remove unnecessary systemd services
ansible.builtin.systemd:
service: "clamd@{{ ansible_hostname }}.service"
service: "{{ item }}"
state: stopped
enabled: false
loop:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment