updatepi.yml Playbook nebst Rolle.

This commit is contained in:
Olli Graf
2026-01-02 11:14:02 +01:00
parent f85a6e0bd7
commit 142d4c131c
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
- 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
- include_tasks: ../common_tasks/upgrade.yml
- include_tasks: ../common_tasks/reboot.yml

7
updatepis.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- hosts: "{{ target }}"
gather_facts: false
remote_user: pi
roles:
- updatepi