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