forked from ISTI-ansible-roles/ansible-roles
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:
parent
b6370fc22b
commit
7793d60938
|
@ -7,3 +7,7 @@
|
|||
service: name=haproxy state=reloaded
|
||||
when: haproxy_enabled
|
||||
|
||||
- name: Reload rsyslog
|
||||
service: name=rsyslog state=reloaded
|
||||
when: haproxy_enabled
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue