make gitlab:setup idempotent

This commit is contained in:
Ricky Elrod 2013-03-15 17:57:08 +00:00
parent cbe2c3caa2
commit 64b67c2b63

View file

@ -173,8 +173,9 @@
- name: Set git email
command: chdir=/home/gitlab git config --global user.email "gitlab@localhost" # Should use same user.email as in config/gitlab.yml is it really needed?
- name: run rake gitlab:setup
shell: chdir=/home/gitlab/gitlab yes yes | /usr/local/bin/bundle exec rake gitlab:setup RAILS_ENV=production
# TODO: If we don't use mysql, change this path.
- name: Run rake gitlab:setup
shell: creates=/var/lib/mysql/gitlabhq_production/users.frm chdir=/home/gitlab/gitlab yes yes | /usr/local/bin/bundle exec rake gitlab:setup RAILS_ENV=production
- hosts: gitlab-dev.cloud.fedoraproject.org
user: root