From 02815e8bb46fffc28464162c26e98985bdfd8810 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 4 Nov 2013 04:49:58 +0100 Subject: 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.) --- roles/common/tasks/hosts.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roles/common/tasks/hosts.yml') diff --git a/roles/common/tasks/hosts.yml b/roles/common/tasks/hosts.yml index 18ccfd9..f818635 100644 --- a/roles/common/tasks/hosts.yml +++ b/roles/common/tasks/hosts.yml @@ -25,3 +25,5 @@ regexp="^127\.0\.1\.1\s+" line="127.0.1.1 {{ inventory_hostname }} {{ inventory_hostname_short }}" tags: hosts + +- meta: flush_handlers -- cgit v1.2.3