2023-02-14 17:36:28 +00:00
|
|
|
-
|
|
|
|
|
|
|
|
name: Update RaspberryPi's
|
|
|
|
hosts: all
|
|
|
|
become: yes # als root ausführen
|
|
|
|
tasks:
|
2023-02-19 16:43:48 +00:00
|
|
|
- name: Update apt-get repo and cache
|
|
|
|
apt: update_cache=yes force_apt_get=yes cache_valid_time=3600
|
|
|
|
|
|
|
|
- name: Upgrade all apt packages
|
|
|
|
apt: upgrade=dist force_apt_get=yes
|
2023-02-14 17:36:28 +00:00
|
|
|
|
|
|
|
- name: Display the last line of the previous task to check the stats
|
|
|
|
debug:
|
|
|
|
msg: "{{updatesys.stdout_lines|last}}"
|