update_grokmirrors: pull develop branches only on dev for now
This commit is contained in:
parent
1a87b50a23
commit
11fb2433ba
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
||||||
# update all mirrors currently served by grokmirror to master:head
|
# update all mirrors currently served by grokmirror
|
||||||
# requires --extra-vars="target=hostspec"
|
|
||||||
|
# XXX currently develop branches are too new to be running on stg,
|
||||||
|
# remember to revert it once new rpms are on stg
|
||||||
|
|
||||||
- name: update grokmirror repos
|
- name: update grokmirror repos
|
||||||
hosts: taskotron-dev:taskotron-stg:taskotron-prod
|
hosts: taskotron-dev:taskotron-stg:taskotron-prod
|
||||||
|
@ -9,12 +11,12 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: update grokmirror repos to develop branches
|
- name: update grokmirror repos to develop branches
|
||||||
when: deployment_type == 'stg' or deployment_type == 'dev'
|
when: deployment_type == 'dev'
|
||||||
command: chdir={{ grokmirror_basedir }}/{{ item.name }} git fetch origin develop:develop
|
command: chdir={{ grokmirror_basedir }}/{{ item.name }} git fetch origin develop:develop
|
||||||
with_items: grokmirror_repos
|
with_items: grokmirror_repos
|
||||||
|
|
||||||
- name: update grokmirror repos to master branches
|
- name: update grokmirror repos to master branches
|
||||||
when: deployment_type == 'prod'
|
when: deployment_type == 'stg' or deployment_type == 'prod'
|
||||||
command: chdir={{ grokmirror_basedir }}/{{ item.name }} git fetch origin master:master
|
command: chdir={{ grokmirror_basedir }}/{{ item.name }} git fetch origin master:master
|
||||||
with_items: grokmirror_repos
|
with_items: grokmirror_repos
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue