From 46b2e1d4b115f61fe0700c0521ba17b46766a259 Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Thu, 10 Apr 2025 03:13:17 +0800 Subject: [PATCH] Feat(judgehost): add playbook for rebuild chroot --- playbooks/judgehost-rebuild-chroot.yml | 9 +++++++++ roles/configure_judgehost/tasks/configure.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 playbooks/judgehost-rebuild-chroot.yml diff --git a/playbooks/judgehost-rebuild-chroot.yml b/playbooks/judgehost-rebuild-chroot.yml new file mode 100644 index 0000000..6183326 --- /dev/null +++ b/playbooks/judgehost-rebuild-chroot.yml @@ -0,0 +1,9 @@ +- name: Rebuild chroot environment for judgehosts + hosts: judgehost + tasks: + - name: Run misc-tools/dj_make_chroot + ansible.builtin.command: | + ./misc-tools/dj_make_chroot -y -i kotlin + args: + chdir: "{{ domjudge_base_dir }}" + creates: /chroot/domjudge diff --git a/roles/configure_judgehost/tasks/configure.yml b/roles/configure_judgehost/tasks/configure.yml index 9026705..27e0390 100644 --- a/roles/configure_judgehost/tasks/configure.yml +++ b/roles/configure_judgehost/tasks/configure.yml @@ -80,7 +80,7 @@ - name: Run misc-tools/dj_make_chroot tags: [chroot] ansible.builtin.command: | - ./misc-tools/dj_make_chroot -y -i kotlin + ./misc-tools/dj_make_chroot -i kotlin args: chdir: "{{ domjudge_base_dir }}" creates: /chroot/domjudge