Browse Source

Das Repository von log2ram wird automatisch auf bookworm umgestellt, sofern die Datei existiert.

master 1.5
Olli Graf 2 years ago
parent
commit
8a2f95798b
  1. 1
      hosts
  2. 10
      roles/stresspi/tasks/main.yml
  3. 14
      roles/updatepi/tasks/main.yml

1
hosts

@ -32,6 +32,7 @@ pi4:
martin:
lenny:
terry:
skinner:
pis:
hosts:

10
roles/stresspi/tasks/main.yml

@ -8,12 +8,20 @@
apt:
name:
- stress
- libjpeg-dev
- zlib1g-dev
- libatlas-base-dev
- cmake
- python3-numpy
- name : Stress installieren(pip)
ansible.builtin.pip:
name:
- stressberry
- numpy
# - numpy
extra_args: --break-system-packages
- name: copy script
copy:

14
roles/updatepi/tasks/main.yml

@ -1,3 +1,17 @@
- name: check log2ram exists
become: true
stat:
path: /etc/apt/sources.list.d/log2ram.list
register: stat_result
- name: log2ram auf bookworm
become: true
replace:
path: /etc/apt/sources.list.d/log2ram.list
regexp: buster
replace: bookworm
when: stat_result.stat.exists
- name: PIs aktualisieren
become: true
apt:

Loading…
Cancel
Save