From e6e6c41538cd3f508c86741afdcfd9df73958ff9 Mon Sep 17 00:00:00 2001
From: Scott Solkhon <scottsolkhon@gmail.com>
Date: Wed, 4 Dec 2019 11:31:45 +0000
Subject: [PATCH] Generate HAProxy configuration for all enabled servvices

This change applys the HAProxy tag to the entire play, ensuring HAProxy
configuration is generated for all services when the HAProxy tag is
specified.

Change-Id: I67f57c831a713142d38c6e7b70f814a9ee8e5aae
Closes-Bug: #1855094
---
 ansible/site.yml                                         | 3 ++-
 .../notes/haproxy-tag-entire-play-537aed55ffd947be.yaml  | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 releasenotes/notes/haproxy-tag-entire-play-537aed55ffd947be.yaml

diff --git a/ansible/site.yml b/ansible/site.yml
index b292cdc4f9..414a6bbc96 100644
--- a/ansible/site.yml
+++ b/ansible/site.yml
@@ -114,9 +114,10 @@
   hosts:
     - haproxy
     - '&enable_haproxy_True'
+  tags:
+    - haproxy
   roles:
     - { role: haproxy,
-        tags: haproxy,
         when: enable_haproxy | bool }
   tasks:
     - block:
diff --git a/releasenotes/notes/haproxy-tag-entire-play-537aed55ffd947be.yaml b/releasenotes/notes/haproxy-tag-entire-play-537aed55ffd947be.yaml
new file mode 100644
index 0000000000..b17eab5f58
--- /dev/null
+++ b/releasenotes/notes/haproxy-tag-entire-play-537aed55ffd947be.yaml
@@ -0,0 +1,9 @@
+---
+fixes:
+  - |
+    When upgrading from Rocky to Stein HAProxy configuration moves from using a
+    single configuration to assembling a file from snippets for each service.
+    Applying the HAProxy tag to the entire play ensures that HAProxy
+    configuration is generated for all services when the HAProxy tag is
+    specified. For details please see
+    `bug 1855094 <https://bugs.launchpad.net/kolla-ansible/+bug/1855094>`__.