diff --git a/clamav/README.md b/clamav/README.md new file mode 100644 index 00000000..ba5fe895 --- /dev/null +++ b/clamav/README.md @@ -0,0 +1,11 @@ +# Clamav + +Installation and basic configuration of clamav + +## Tasks + +Minimal configuration is in `tasks/main.yml` + +## Available variables + +The full list of variables (with default values) can be found in `defaults/main.yml`. diff --git a/clamav/defaults/main.yml b/clamav/defaults/main.yml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/clamav/defaults/main.yml @@ -0,0 +1 @@ +--- diff --git a/clamav/handlers/main.yml b/clamav/handlers/main.yml new file mode 100644 index 00000000..4f445b18 --- /dev/null +++ b/clamav/handlers/main.yml @@ -0,0 +1,9 @@ +--- +- name: restart clamav-daemon + service: + name: clamav-daemon + state: restarted +- name: restart clamav-freshclam + service: + name: clamav-freshclam + state: restarted diff --git a/clamav/meta/main.yml b/clamav/meta/main.yml new file mode 100644 index 00000000..5a60cb27 --- /dev/null +++ b/clamav/meta/main.yml @@ -0,0 +1,19 @@ +galaxy_info: + author: Evolix + description: Installation and basic configuration of clamav. + + issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues + + license: GPLv2 + + min_ansible_version: 2.0 + + platforms: + - name: Debian + versions: + - jessie + +dependencies: [] + # List your role dependencies here, one per line. + # Be sure to remove the '[]' above if you add dependencies + # to this list. diff --git a/clamav/tasks/main.yml b/clamav/tasks/main.yml new file mode 100644 index 00000000..32541b04 --- /dev/null +++ b/clamav/tasks/main.yml @@ -0,0 +1,4 @@ +- name: ensure packages are installed + apt: + name: clamav-freshclam + state: present