taskotron: set default check repo branch

This commit is contained in:
Martin Krizek 2015-12-02 11:32:32 +00:00
parent 5579bed478
commit fea21a1019
5 changed files with 15 additions and 11 deletions

View file

@ -37,5 +37,11 @@
sudo_user: "{{ grokmirror_user }}"
with_items: grokmirror_repos
- name: set up default branch
command: chdir={{ grokmirror_basedir }}/{{ item.name }} git symbolic-ref HEAD refs/heads/{{ grokmirror_default_branch }}
sudo: true
sudo_user: "{{ grokmirror_user }}"
with_items: grokmirror_repos
- name: generate grokmirror config
template: src=repos.conf.j2 dest=/etc/grokmirror/repos.conf owner={{ grokmirror_user }} group={{ grokmirror_user }} mode=0644