add update playbook

This commit is contained in:
Robert 2023-02-14 18:36:28 +01:00
parent f76125a0f7
commit 6ef677a5c3

16
update.yml Normal file
View File

@ -0,0 +1,16 @@
-
name: Update RaspberryPi's
hosts: all
become: yes # als root ausführen
tasks:
- name: Ansible Update Cache and Upgrade all Packages
register: updatesys
apt:
name: "*"
state: latest
update_cache: yes
- name: Display the last line of the previous task to check the stats
debug:
msg: "{{updatesys.stdout_lines|last}}"