library/roles/haproxy: reload rsyslog after having installed haproxy. A new rsyslog directive is installed and a reload is needed to activate it.

This commit is contained in:
Andrea Dell'Amico 2015-12-11 16:43:53 +01:00
parent b6370fc22b
commit 7793d60938
2 changed files with 9 additions and 0 deletions

View File

@ -7,3 +7,7 @@
service: name=haproxy state=reloaded
when: haproxy_enabled
- name: Reload rsyslog
service: name=rsyslog state=reloaded
when: haproxy_enabled

View File

@ -36,6 +36,11 @@
ignore_errors: True
tags: haproxy
- name: Haproxy puts a new rsyslog directive. Reload rsyslog to activate it
service: name=rsyslog state=reloaded
when: haproxy_enabled
tags: haproxy
- name: Ensure that haproxy is stopped and disabled if needed
service: name=haproxy state=stopped enabled=no
when: not haproxy_enabled