Only do the alembic upgrade on the primary bodhi backend node.

This commit is contained in:
Ralph Bean 2015-09-02 19:17:57 +00:00
parent d2118d92de
commit fd9a42222e

View file

@ -89,6 +89,7 @@
command: /usr/bin/alembic -c /usr/share/bodhi/alembic.ini upgrade head
args:
chdir: /usr/share/bodhi/
when: inventory_hostname.startswith('bodhi-backend01')
- name: And... start the backend again
service: name="fedmsg-hub" state=started