updatepi.yml Playbook nebst Rolle.
This commit is contained in:
15
roles/updatepi/tasks/main.yml
Normal file
15
roles/updatepi/tasks/main.yml
Normal 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
7
updatepis.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- hosts: "{{ target }}"
|
||||||
|
gather_facts: false
|
||||||
|
remote_user: pi
|
||||||
|
roles:
|
||||||
|
- updatepi
|
||||||
|
|
||||||
Reference in New Issue
Block a user