diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-11-04 04:49:58 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:50:41 +0200 |
commit | 02815e8bb46fffc28464162c26e98985bdfd8810 (patch) | |
tree | 139d11eb702ab744f7d37f248065e6146410f3bd /roles/common/tasks/ipsec.yml | |
parent | 89fd6c4ac7c1a0c2b8529c644caeaa79159e81fe (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/ipsec.yml')
-rw-r--r-- | roles/common/tasks/ipsec.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/common/tasks/ipsec.yml b/roles/common/tasks/ipsec.yml index 2196728..1f33946 100644 --- a/roles/common/tasks/ipsec.yml +++ b/roles/common/tasks/ipsec.yml @@ -39,20 +39,22 @@ - Restart IPSec - name: Start IPSec service: name=ipsec state=started - name: Auto-create a dedicated interface for IPSec copy: src=etc/network/if-up.d/ipsec dest=/etc/network/if-up.d/ipsec owner=root group=root mode=0755 notify: - Reload networking # XXX: As of 1.3.1 ansible doesn't accept relative src. # See https://github.com/ansible/ansible/issues/4459 - name: Auto-deactivate the dedicated interface for IPSec file: #src=../if-up.d/ipsec src=/etc/network/if-up.d/ipsec dest=/etc/network/if-down.d/ipsec owner=root group=root state=link + +- meta: flush_handlers |