Only run db creation on the primary nodes so that we dont get race conditions

This commit is contained in:
Patrick Uiterwijk 2014-02-14 22:17:31 +00:00
parent a0a41c33a8
commit 51a4bc5498

View file

@ -48,6 +48,7 @@
when: env == "staging"
- name: create the database scheme
hosts: fedoauth01.phx2.fedoraproject.org:fedoauth01.stg.phx2.fedoraproject.org
command: /usr/bin/python2 /usr/share/fedoauth/createdb.py
environment:
FEDOAUTH_CONFIG: /etc/fedoauth/fedoauth.cfg