Fix haproxy restarting twice per Ansible run

Since haproxy is orchestrated via site.yml in a single play,
it does not need flushing handlers as handlers run will
happen at the end of this play.

Change-Id: Ia3743575da707325be93c39b4a2bcae9211cacb2
Related-Bug: #1864810
Closes-Bug: #1875228
This commit is contained in:
Radosław Piliszek 2020-04-26 21:51:20 +02:00
parent 98e86ea62b
commit 04effaa903
3 changed files with 15 additions and 4 deletions

View File

@ -3,5 +3,7 @@
- include_tasks: config.yml
- name: Flush handlers
meta: flush_handlers
# NOTE(yoctozepto): haproxy role handlers should not be flushed early.
# site.yml handles all haproxy things in a dedicated play.
# This is to avoid extra haproxy service restart.
# See: https://bugs.launchpad.net/kolla-ansible/+bug/1875228

View File

@ -16,5 +16,7 @@
notify:
- Restart keepalived container
- name: Flush handlers
meta: flush_handlers
# NOTE(yoctozepto): haproxy role handlers should not be flushed early.
# site.yml handles all haproxy things in a dedicated play.
# This is to avoid extra haproxy service restart.
# See: https://bugs.launchpad.net/kolla-ansible/+bug/1875228

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes haproxy role to avoid restarting haproxy service multiple times
in a single Ansible run.
`LP#1864810 <https://launchpad.net/bugs/1864810>`__
`LP#1875228 <https://launchpad.net/bugs/1875228>`__