Add clamav role
This commit is contained in:
parent
6b8a51a18e
commit
6cff5f3203
11
clamav/README.md
Normal file
11
clamav/README.md
Normal file
|
@ -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`.
|
1
clamav/defaults/main.yml
Normal file
1
clamav/defaults/main.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
---
|
9
clamav/handlers/main.yml
Normal file
9
clamav/handlers/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
- name: restart clamav-daemon
|
||||||
|
service:
|
||||||
|
name: clamav-daemon
|
||||||
|
state: restarted
|
||||||
|
- name: restart clamav-freshclam
|
||||||
|
service:
|
||||||
|
name: clamav-freshclam
|
||||||
|
state: restarted
|
19
clamav/meta/main.yml
Normal file
19
clamav/meta/main.yml
Normal file
|
@ -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.
|
4
clamav/tasks/main.yml
Normal file
4
clamav/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- name: ensure packages are installed
|
||||||
|
apt:
|
||||||
|
name: clamav-freshclam
|
||||||
|
state: present
|
Loading…
Reference in a new issue