Only do the alembic upgrade on the primary bodhi backend node.
This commit is contained in:
parent
d2118d92de
commit
fd9a42222e
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,7 @@
|
||||||
command: /usr/bin/alembic -c /usr/share/bodhi/alembic.ini upgrade head
|
command: /usr/bin/alembic -c /usr/share/bodhi/alembic.ini upgrade head
|
||||||
args:
|
args:
|
||||||
chdir: /usr/share/bodhi/
|
chdir: /usr/share/bodhi/
|
||||||
|
when: inventory_hostname.startswith('bodhi-backend01')
|
||||||
|
|
||||||
- name: And... start the backend again
|
- name: And... start the backend again
|
||||||
service: name="fedmsg-hub" state=started
|
service: name="fedmsg-hub" state=started
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue