make gitlab:setup idempotent
This commit is contained in:
parent
cbe2c3caa2
commit
64b67c2b63
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue