1
0
Fork 0
home-stack-ansible/roles/k3s/tasks/raspberrypi.yml

28 lines
775 B
YAML
Raw Normal View History

2021-12-15 01:55:52 +00:00
- 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
2022-07-21 00:25:58 +00:00
- 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
2021-12-15 01:55:52 +00:00
notify: reboot
2022-07-21 00:25:58 +00:00
- name: Enable cgroup memory
lineinfile:
path: /boot/cmdline.txt
backrefs: true
regexp: '^(.+ rootwait).*$'
line: '\1 cgroup_memory=1 cgroup_enable=memory'
2021-12-15 01:55:52 +00:00
notify: reboot