buluma.clamav

Ansible Role clamav

This role installs and sets up ClamAV on your system.

GitHub Version Issues Pull Requests Downloads
github Version Issues PullRequests Ansible Role

Example Playbook

Below is an example playbook from molecule/default/converge.yml. It is tested whenever there is a push, pull request, or release.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: buluma.clamav
      freshclam_private_mirrors:
        - https://www.danami.com/hotfix/clamav

Before running this, your machine needs to be prepared. In CI, this is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  gather_facts: false
  become: true

  roles:
    - role: buluma.bootstrap
    - role: buluma.epel

For more details on how to use these roles, check out a full explanation and example.

Role Variables

Default values for the variables are found in defaults/main.yml:

---
# Defaults for clamav

# For SELinux, configure scanning permission. Set clamav_can_scan_system to "true" or "false".
clamav_can_scan_system: true

# You can adjust parameters using "regexp" and "line". "regexp" is the line to be replaced; "line" holds the replacement.
clamav_configuration:
  - line: "Example"
    state: absent
  - line: "TCPSocket 10025"
  - line: "TCPAddr 127.0.0.1"
  - line: "LogFile /var/log/clamd.scan"

# If you have local ClamAV mirrors, define them in a list like this:
# freshclam_private_mirrors:
#   - mirror1.mynetwork.com
#   - mirror2.mynetwork.com

Requirements

State of Used Roles

Several roles are used to prepare the system. You can also prepare it in another way.

Requirement GitHub Version
buluma.bootstrap Ansible Molecule Version
buluma.epel Ansible Molecule Version

Context

This role is part of a collection of related roles. Check out the documentation for these roles for more information.

Related roles overview:

dependencies

Compatibility

This role has been tested on the following container images:

Container Tags
Alpine all
Amazon Candidate
EL 9
Debian all
Fedora all
Ubuntu all

You need Ansible version 2.12 or higher, with tests completed for:

  • The previous version.
  • The current version.
  • The development version.

If you encounter any issues, please report them on GitHub.

Changelog

Check the Role History.

License

Licensed under Apache-2.0.

Author Information

Created by Shadow Walker.

Informazioni sul progetto

Install and configure clamav on your system.

Installa
ansible-galaxy install buluma.clamav
Licenza
apache-2.0
Download
306
Proprietario
DevOps Engineer