Feat(judgehost): test legacy with debian11
This commit is contained in:
@@ -3,11 +3,7 @@
|
||||
ansible.builtin.lineinfile:
|
||||
path: /boot/loader/entries/arch.conf
|
||||
line: >-
|
||||
options
|
||||
cgroup_enable=memory
|
||||
swapaccount=1
|
||||
SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1
|
||||
systemd.unified_cgroup_hierarchy=0
|
||||
options cgroup_enable=memory
|
||||
notify: Reboot
|
||||
- name: Flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
13
roles/configure_judgehost_legacy/tasks/domjudge.yml
Normal file
13
roles/configure_judgehost_legacy/tasks/domjudge.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: Download domjudge tarball
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ domjudge_tarball_url }}"
|
||||
dest: /opt/
|
||||
mode: '0644'
|
||||
owner: root
|
||||
group: root
|
||||
register: downloaded_tarball
|
||||
- name: Extract domjudge tarball
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ downloaded_tarball.dest }}"
|
||||
dest: "{{ (downloaded_tarball.dest | basename).split('.') | first }}"
|
||||
remote_src: true
|
||||
18
roles/install_packages_debian11/tasks/main.yml
Normal file
18
roles/install_packages_debian11/tasks/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Install packages
|
||||
ansible.builtin.apt:
|
||||
pkg:
|
||||
- make
|
||||
- pkg-config
|
||||
- sudo
|
||||
- debootstrap
|
||||
- libcgroup-dev
|
||||
- php-cli
|
||||
- php-curl
|
||||
- php-json
|
||||
- php-xml
|
||||
- php-zip
|
||||
- lsof
|
||||
- procps
|
||||
- gcc
|
||||
- g++
|
||||
Reference in New Issue
Block a user