ansible/update.yml

16 lines
386 B
YAML
Raw Normal View History

2023-02-14 17:36:28 +00:00
-
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}}"