Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fb1834f

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 20a389c commit fb1834f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎provision-contest/ansible/admin.yml‎

Lines changed: 16 additions & 0 deletions
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: ansible@10.3.3.224:domjudge
155+
- remote: github
156+
url: git@github.com: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)

AltStyle によって変換されたページ (->オリジナル) /