Skip to content

Commit

Permalink
Move it to show the ignored error as last item.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Sep 12, 2024
1 parent 8e0a9a8 commit c06cf1b
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions provision-contest/ansible/admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,6 @@
set_fact:
dj_git_repo_scripts: "{{ DJ_GIT_REPO_SCRIPTS_RESTRICTED if WF_RESTRICTED_NETWORK else DJ_GIT_REPO_SCRIPTS }}"

- name: Download offline repos
when: WF_RESTRICTED_NETWORK
become: true
become_user: domjudge
block:
- 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

- name: Create working copy of the contest repo
ignore_errors: true
git: repo=git@packages:{{ CONTEST_REPO }} dest=/home/domjudge/{{ CONTEST_REPO }} version=master accept_hostkey=yes update=no

- name: Copy custom CSS file for admin machines
copy:
src: admin-machine.css
Expand Down Expand Up @@ -150,3 +137,17 @@
etype: user
permissions: rwx
state: present

- name: Download offline repos
when: WF_RESTRICTED_NETWORK
become: true
become_user: domjudge
block:
- 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

- name: Create working copy of the contest repo
ignore_errors: true
git: repo=git@packages:{{ CONTEST_REPO }} dest=/home/domjudge/{{ CONTEST_REPO }} version=master accept_hostkey=yes update=no

0 comments on commit c06cf1b

Please sign in to comment.