28 lines
775 B
YAML
28 lines
775 B
YAML
- name: Download arm64 k3s binary
|
|
get_url:
|
|
url: https://github.com/k3s-io/k3s/releases/download/{{ k3s.version }}/k3s-arm64
|
|
checksum: sha256:https://github.com/k3s-io/k3s/releases/download/{{ k3s.version }}/sha256sum-arm64.txt
|
|
dest: /usr/local/bin/k3s
|
|
owner: root
|
|
group: root
|
|
mode: 0755
|
|
notify: reboot
|
|
|
|
- name: Configure poe hat fan speed control
|
|
blockinfile:
|
|
path: /boot/config.txt
|
|
block: |
|
|
dtparam=poe_fan_temp0=65000
|
|
dtparam=poe_fan_temp1=70000
|
|
dtparam=poe_fan_temp2=75000
|
|
dtparam=poe_fan_temp3=80000
|
|
notify: reboot
|
|
|
|
- name: Enable cgroup memory
|
|
lineinfile:
|
|
path: /boot/cmdline.txt
|
|
backrefs: true
|
|
regexp: '^(.+ rootwait).*$'
|
|
line: '\1 cgroup_memory=1 cgroup_enable=memory'
|
|
notify: reboot
|