Fix(judgehost): permission of /opt/domjudge
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 17s
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 17s
This commit is contained in:
3
hosts
3
hosts
@@ -7,7 +7,8 @@ localhost ansible_connection=local
|
|||||||
|
|
||||||
[judgehost]
|
[judgehost]
|
||||||
10.4.2.227
|
10.4.2.227
|
||||||
#10.4.2.228
|
10.4.2.228
|
||||||
|
10.4.2.229
|
||||||
|
|
||||||
[all:vars]
|
[all:vars]
|
||||||
ansible_python_interpreter=/usr/bin/python3
|
ansible_python_interpreter=/usr/bin/python3
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
- name: Install judgehost
|
- name: Install judgehost
|
||||||
hosts: judgehost
|
hosts: judgehost
|
||||||
roles:
|
roles:
|
||||||
# - role: install_packages_debian
|
- role: install_packages_debian
|
||||||
# - role: configure_judgehost_legacy
|
- role: configure_judgehost_legacy
|
||||||
- role: configure_judgehost
|
# - role: configure_judgehost
|
||||||
|
|||||||
@@ -79,10 +79,10 @@
|
|||||||
|
|
||||||
- name: Run misc-tools/dj_make_chroot
|
- name: Run misc-tools/dj_make_chroot
|
||||||
ansible.builtin.command: |
|
ansible.builtin.command: |
|
||||||
./misc-tools/dj_make_chroot
|
./misc-tools/dj_make_chroot -y
|
||||||
args:
|
args:
|
||||||
chdir: "{{ domjudge_base_dir }}"
|
chdir: "{{ domjudge_base_dir }}"
|
||||||
changed_when: true
|
creates: /chroot/domjudge
|
||||||
|
|
||||||
- name: Modify boot options
|
- name: Modify boot options
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
path: "{{ domjudge_base_dir | dirname }}"
|
path: "{{ domjudge_base_dir | dirname }}"
|
||||||
state: directory
|
state: directory
|
||||||
recurse: true
|
recurse: true
|
||||||
mode: '0750'
|
mode: '0755'
|
||||||
owner: domjudge
|
owner: domjudge
|
||||||
group: domjudge
|
group: domjudge
|
||||||
- name: Install domjudge by tarball
|
- name: Install domjudge by tarball
|
||||||
|
|||||||
Reference in New Issue
Block a user