summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/samhain.yml
blob: cbc0b5e643ff844e6c73a16716cfa55c7afbb0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- 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

- name: Start samhain
  service: name=samhain state=started

- meta: flush_handlers