16 lines
386 B
YAML
16 lines
386 B
YAML
|
-
|
||
|
|
||
|
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}}"
|