Skip to content

Commit 1ec3b3c

Browse files
committed
Add remotes
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.
1 parent c06cf1b commit 1ec3b3c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

provision-contest/ansible/admin.yml

+16
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,22 @@
143143
become: true
144144
become_user: domjudge
145145
block:
146+
- name: Add ccsadmin remote
147+
git_config:
148+
name: "remote.{{ item.remote }}.url"
149+
value: "{{ item.url }}"
150+
scope: local
151+
repo: /home/domjudge/domjudge-checkout
152+
loop:
153+
- remote: origin
154+
url: [email protected]:domjudge
155+
- remote: github
156+
url: [email protected]:DOMjudge/domjudge.git
157+
- remote: sysops
158+
url: domjudge@packages:domjudge.git
159+
- remote: initial
160+
url: ansible@domjudge-ccsadmin1:domjudge.git
161+
146162
- name: Create working copy of the domjudge-scripts repo
147163
# We use a different directory here to have one single 'upstream' and not have issues with it
148164
git: repo={{ dj_git_repo_scripts }} dest=/home/domjudge/domjudge-scripts-checkout version=main accept_hostkey=yes update=no

0 commit comments

Comments
 (0)