From e2a1facede6b2e775347de37d9e88bd71493da4c Mon Sep 17 00:00:00 2001
From: Jeremy Stanley <fungi@yuggoth.org>
Date: Fri, 9 Jul 2021 23:15:52 +0000
Subject: [PATCH] Sync project-config before deploying accessbot

The run-accessbot playbook relies on the accessbot role which
installs /etc/accessbot/channels.yaml from openstack/project-config,
so needs to make sure it uses the latest copy of that file. Add the
sync-project-config role before that so we'll have it.

Without this, application of accessbot configuration changes always
lags by one iteration, so we were perpetually applying the previous
version when deploying.

Change-Id: Ief318d10e7660a53cc92336d715116138ddf51b8
---
 playbooks/run-accessbot.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/playbooks/run-accessbot.yaml b/playbooks/run-accessbot.yaml
index a0c02b3b15..7f48b18e02 100644
--- a/playbooks/run-accessbot.yaml
+++ b/playbooks/run-accessbot.yaml
@@ -1,6 +1,7 @@
 - hosts: 'eavesdrop:!disabled'
   name: "eavesdrop: run accessbot"
   roles:
+    - sync-project-config
     - accessbot
   tasks:
     - name: Run accessbot