diff --git a/hosts b/hosts index a8b52ff..8c82e64 100644 --- a/hosts +++ b/hosts @@ -7,7 +7,8 @@ localhost ansible_connection=local [judgehost] 10.4.2.227 -#10.4.2.228 +10.4.2.228 +10.4.2.229 [all:vars] ansible_python_interpreter=/usr/bin/python3 diff --git a/playbooks/judgehost.yml b/playbooks/judgehost.yml index 4390964..f94c7d3 100644 --- a/playbooks/judgehost.yml +++ b/playbooks/judgehost.yml @@ -2,6 +2,6 @@ - name: Install judgehost hosts: judgehost roles: - # - role: install_packages_debian - # - role: configure_judgehost_legacy - - role: configure_judgehost + - role: install_packages_debian + - role: configure_judgehost_legacy + # - role: configure_judgehost diff --git a/roles/configure_judgehost_legacy/tasks/configure.yml b/roles/configure_judgehost_legacy/tasks/configure.yml index ea7c62f..6eaff03 100644 --- a/roles/configure_judgehost_legacy/tasks/configure.yml +++ b/roles/configure_judgehost_legacy/tasks/configure.yml @@ -79,10 +79,10 @@ - name: Run misc-tools/dj_make_chroot ansible.builtin.command: | - ./misc-tools/dj_make_chroot + ./misc-tools/dj_make_chroot -y args: chdir: "{{ domjudge_base_dir }}" - changed_when: true + creates: /chroot/domjudge - name: Modify boot options ansible.builtin.lineinfile: diff --git a/roles/configure_judgehost_legacy/tasks/download.yml b/roles/configure_judgehost_legacy/tasks/download.yml index ea89229..7dc03b8 100644 --- a/roles/configure_judgehost_legacy/tasks/download.yml +++ b/roles/configure_judgehost_legacy/tasks/download.yml @@ -3,7 +3,7 @@ path: "{{ domjudge_base_dir | dirname }}" state: directory recurse: true - mode: '0750' + mode: '0755' owner: domjudge group: domjudge - name: Install domjudge by tarball