20 lines
728 B
YAML
20 lines
728 B
YAML
# update all mirrors currently served by grokmirror to master:head
|
|
# requires --extra-vars="target=hostspec"
|
|
|
|
- name: update grokmirror repos
|
|
hosts: "{{ target }}"
|
|
sudo: true
|
|
sudo_user: "{{ grokmirror_user }}"
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
- name: update grokmirror repos to develop branches
|
|
when: deployment_type == 'stg' or deployment_type == 'dev'
|
|
command: chdir={{ grokmirror_basedir }}/{{ item.name }} git fetch origin master:master
|
|
with_items: grokmirror_repos
|
|
|
|
- name: update grokmirror repos to master branches
|
|
when: deployment_type == 'prod'
|
|
command: chdir={{ grokmirror_basedir }}/{{ item.name }} git fetch origin master:master
|
|
with_items: grokmirror_repos
|
|
|