Skip to content
Snippets Groups Projects
Commit 04effaa9 authored by Radosław Piliszek's avatar Radosław Piliszek
Browse files

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
parent 98e86ea6
No related branches found
No related tags found
No related merge requests found
...@@ -3,5 +3,7 @@ ...@@ -3,5 +3,7 @@
- include_tasks: config.yml - include_tasks: config.yml
- name: Flush handlers # NOTE(yoctozepto): haproxy role handlers should not be flushed early.
meta: flush_handlers # 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
...@@ -16,5 +16,7 @@ ...@@ -16,5 +16,7 @@
notify: notify:
- Restart keepalived container - Restart keepalived container
- name: Flush handlers # NOTE(yoctozepto): haproxy role handlers should not be flushed early.
meta: flush_handlers # 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
---
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>`__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment