diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-10-30 21:08:15 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:50:28 +0200 |
commit | a59578e8406949827d20efa19edfa6a746168c82 (patch) | |
tree | 9e060676e105faa49cb061740b13a17f6029f6b2 /roles/common/tasks | |
parent | fbde929fce7405f018fc66bb5796bf0a16292913 (diff) |
Configure samhain.
Diffstat (limited to 'roles/common/tasks')
-rw-r--r-- | roles/common/tasks/main.yml | 1 | ||||
-rw-r--r-- | roles/common/tasks/samhain.yml | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 460ffdd..b2ec514 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -3,3 +3,4 @@ - include: hosts.yml - include: apt.yml tags=apt - include: firewall.yml tags=firewall,iptables +- include: samhain.yml tags=samhain diff --git a/roles/common/tasks/samhain.yml b/roles/common/tasks/samhain.yml new file mode 100644 index 0000000..73a2ace --- /dev/null +++ b/roles/common/tasks/samhain.yml @@ -0,0 +1,17 @@ +- name: Install samhain + apt: pkg=samhain + # XXX: Doesn't work out of the box, see #660197. + # If this is the first installation, you may want to start with a fresh database + # sudo service samhain stop + # sudo rm /var/state/samhain/samhain_file + # sudo samhain -t init -p warn + # sudo service samhain start + # sudo samhain -t update -l none + +- name: Configure samhain + copy: src=etc/samhain/samhainrc + dest=/etc/samhain/samhainrc + owner=root group=root + mode=0644 + notify: + - Reload samhain |