mirror of
https://github.com/de-it-krachten/ansible-role-clamav
synced 2026-05-14 03:31:51 +00:00
No description
- Jinja 100%
# [1.7.0](https://github.com/de-it-krachten/ansible-role-clamav/compare/v1.6.0...v1.7.0) (2026-04-08) ### Features * Added support for Fedora 43 ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| handlers | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| templates | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-clamav
Manage ClamAV
Dependencies
Roles
None
Collections
- ansible.posix
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
- RockyLinux 8
- RockyLinux 9
- RockyLinux 10
- OracleLinux 8
- OracleLinux 9
- AlmaLinux 8
- AlmaLinux 9
- AlmaLinux 10
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Debian 13 (Trixie)
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Ubuntu 26.04 LTS
- Fedora 42
- Fedora 43
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
defaults/family-Debian.yml
# List of required packages
clamav_packages:
- clamav
- clamav-daemon
- clamav-freshclam
# - clamav-scanner
# - clamtk
# clamav systemd services
clamav_services:
- clamav-daemon
# clamav systemd services to disable
clamav_services_disabled: []
# clamav main configuration file
clamav_conf: /etc/clamav/clamd.conf
# freshclam_conf
clamav_freshclam_conf: /etc/clamav/freshclam.conf
# clamav configuration
clamav_scan_conf:
User: root
LocalSocket: /var/run/clamd.scan/clamd.sock
LocalSocketGroup: virusgroup
LocalSocketMode: '660'
FixStaleSocket: 'yes'
ExcludePath: "^(/proc/|/sys/)"
ScanOnAccess: 'yes'
OnAccessMaxFileSize: 25M
OnAccessExcludeRootUID: 'yes'
# OnAccessExcludeUname: clamav
OnAccessPrevention: 'yes'
OnAccessDisableDDD: 'no'
defaults/family-RedHat.yml
# List of required packages
clamav_packages:
- clamav
- clamav-update
- clamav-server
- clamav-server-systemd
# - clamav-scanner
# - clamtk
# clamav systemd services
clamav_services:
- clamd@scan
- freshclam
# clamav systemd services to disable
clamav_services_disabled: []
# clamav main configuration file
clamav_conf: /etc/clamd.d/scan.conf
# freshclam_conf
clamav_freshclam_conf: /etc/freshclam.conf
# clamav configuration
clamav_scan_conf:
User: root
LocalSocket: /var/run/clamd.scan/clamd.sock
LocalSocketGroup: virusgroup
LocalSocketMode: '660'
FixStaleSocket: 'yes'
ExcludePath: "^(/proc/|/sys/)"
ScanOnAccess: 'yes'
OnAccessMaxFileSize: 25M
OnAccessExcludeRootUID: 'yes'
# OnAccessExcludeUname: clamav
OnAccessPrevention: 'yes'
OnAccessDisableDDD: 'no'
defaults/family-Suse.yml
# List of required packages
clamav_packages:
- clamav
- clamav-database
# clamav systemd services
clamav_services:
- clamd
- freshclam
# clamav systemd services to disable
clamav_services_disabled: []
# clamav main configuration file
clamav_conf: /etc/clamd.conf
# freshclam_conf
clamav_freshclam_conf: /etc/freshclam.conf
# clamav configuration
clamav_scan_conf:
User: root
LocalSocket: /var/run/clamd.scan/clamd.sock
LocalSocketGroup: vscan
LocalSocketMode: '660'
FixStaleSocket: 'yes'
ExcludePath: "^(/proc/|/sys/)"
ScanOnAccess: 'yes'
OnAccessMaxFileSize: 25M
OnAccessExcludeRootUID: 'yes'
# OnAccessExcludeUname: clamav
OnAccessPrevention: 'yes'
OnAccessDisableDDD: 'no'
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'clamav'
hosts: all
become: 'yes'
tasks:
- name: Include role 'clamav'
ansible.builtin.include_role:
name: clamav