Added basic setup for master and certification material

This commit is contained in:
2022-04-27 16:02:08 +02:00
parent 5f1ddaa73d
commit 2feefe0fd0
66 changed files with 2364 additions and 6 deletions

25
tweak_rpi4.yaml Normal file
View File

@@ -0,0 +1,25 @@
---
- name: Enable container features
replace:
path: /boot/cmdline.txt
regexp: '^([\w](?!.*\b{{ item }}\b).*)$'
replace: '\1 {{ item }}'
with_items:
- "cgroup_enable=cpuset"
- "cgroup_memory=1"
- "cgroup_enable=memory"
- "wapaccount=1"
register: cmdline
- name: Set Swappoff in conf file
lineinfile:
path: /etc/dphys-swapfile
line: CONF_SWAPSIZE=0
state: present
insertafter: EOF
register: swap
- name: Unconditionally reboot the machine with all defaults
reboot:
when: cmdline.changed or swap.changed