diff --git a/update.yml b/update.yml new file mode 100644 index 0000000..75890dc --- /dev/null +++ b/update.yml @@ -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}}" \ No newline at end of file