summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/samhain.yml
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-11-04 04:49:58 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:50:41 +0200
commit02815e8bb46fffc28464162c26e98985bdfd8810 (patch)
tree139d11eb702ab744f7d37f248065e6146410f3bd /roles/common/tasks/samhain.yml
parent89fd6c4ac7c1a0c2b8529c644caeaa79159e81fe (diff)
Flush pending handlers between each include.
In particular, run 'apt-get update' right after configured APT, and restart daemon right after configured them. The advantage being that if ansible crashes in some "task", the earlier would already be restarted if neeeded. (This may not happen in the next run since the configuration should already be up to date.)
Diffstat (limited to 'roles/common/tasks/samhain.yml')
-rw-r--r--roles/common/tasks/samhain.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/common/tasks/samhain.yml b/roles/common/tasks/samhain.yml
index 90ea754..cbc0b5e 100644
--- a/roles/common/tasks/samhain.yml
+++ b/roles/common/tasks/samhain.yml
@@ -1,20 +1,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