File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
provision-contest/ansible Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ ICPC_IMAGE: false
27
27
# Set this to true when you are using a graphical desktop
28
28
GRAPHICAL: false
29
29
30
+ # Set this to true when you use an (ICPC) AWS machine
31
+ AWS: true
32
+
30
33
# Set this when on the blue network at the World Finals where no
31
34
# internet access is available and "packages" must be used as APT repo
32
35
# server.
Original file line number Diff line number Diff line change 54
54
regexp : ' ^GRUB_CMDLINE_LINUX_DEFAULT='
55
55
line : " GRUB_CMDLINE_LINUX_DEFAULT=\" {{ procline }}\" "
56
56
57
+ - name : Pre-generate the kernel flags for ansible usage (specific AWS)
58
+ # AWS machines overwrite the variable from the last step in another file
59
+ # console: https://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-kernel.html
60
+ # nvme_core: https://docs.aws.amazon.com/ebs/latest/userguide/nvme-ebs-volumes.html#timeout-nvme-ebs-volumes
61
+ when : AWS
62
+ set_fact :
63
+ procline_aws : " console=tty1 console=ttyS0 nvme_core.io_timeout=4294967295 {{ procline }}"
64
+
65
+ - name : Add cgroup kernel parameters for AWS machines
66
+ when : AWS
67
+ lineinfile :
68
+ dest : /etc/default/grub.d/50-cloudimg-settings.cfg
69
+ regexp : ' ^GRUB_CMDLINE_LINUX_DEFAULT='
70
+ line : " GRUB_CMDLINE_LINUX_DEFAULT=\" {{ procline_aws }}\" "
71
+
57
72
- name : Check cgroup kernel parameters
58
73
command : cat /proc/cmdline
59
74
register : kernel_cmdline
You can’t perform that action at this time.
0 commit comments