Skip to content

Commit

Permalink
Add remotes
Browse files Browse the repository at this point in the history
The idea is to have 4 remotes, 1 which we can change if the other host
gets up and the others to make sure we can still work on possible
branches or rebase against them.
  • Loading branch information
vmcj committed Sep 12, 2024
1 parent 20a389c commit f01ab01
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions provision-contest/ansible/admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,22 @@
become: true
become_user: domjudge
block:
- name: Add ccsadmin remote
git_config:
name: "remote.{{ item.remote }}.url"
value: "{{ item.url }}"
scope: local
repo: /home/domjudge/domjudge-checkout
loop:
- remote: origin
url: [email protected]:domjudge
- remote: github
url: [email protected]:DOMjudge/domjudge.git
- remote: sysops
url: domjudge@packages:domjudge.git
- remote: initial
url: ansible@domjudge-ccsadmin1:domjudge.git

- name: Create working copy of the domjudge-scripts repo
# We use a different directory here to have one single 'upstream' and not have issues with it
git: repo={{ dj_git_repo_scripts }} dest=/home/domjudge/domjudge-scripts-checkout version=main accept_hostkey=yes update=no
Expand Down

0 comments on commit f01ab01

Please sign in to comment.