From 446b24c52f696e7c0912072ed486c9ba507228c4 Mon Sep 17 00:00:00 2001
From: Monty Taylor <mordred@inaugust.com>
Date: Fri, 17 Apr 2020 17:56:51 -0500
Subject: [PATCH] Run a noop on all zookeeper servers first

We need to touch them so that all of their hostvars are visible
in playbooks/roles/zookeeper/templates/zoo.cfg.j2

Change-Id: I04f225269ac31a4890f692c214e8ffb8878833aa
---
 playbooks/service-zookeeper.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/playbooks/service-zookeeper.yaml b/playbooks/service-zookeeper.yaml
index 1cc78357ab..81a4d5602d 100644
--- a/playbooks/service-zookeeper.yaml
+++ b/playbooks/service-zookeeper.yaml
@@ -1,3 +1,13 @@
+# We exclude !disabled because we want to run the noop task on all
+# of the hosts in the group, not just the active ones, because we're
+# pulling their hostvars from the fact cache. They don't stop being
+# zookeeper servers just because they are disabled.
+- hosts: "zookeeper"
+  tasks:
+    - name: Use the host so we have access to its hostvars
+      debug:
+        msg: "This debug statement is to get us access to hostvars"
+
 - hosts: "zookeeper:!disabled"
   name: "Configure Zookeeper"
   serial: 1