system-config/playbooks/run-accessbot.yaml
Jeremy Stanley e2a1facede 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
2021-07-09 23:15:52 +00:00

9 lines
192 B
YAML

- hosts: 'eavesdrop:!disabled'
name: "eavesdrop: run accessbot"
roles:
- sync-project-config
- accessbot
tasks:
- name: Run accessbot
command: /usr/local/bin/accessbot