From 6ef677a5c3d21f79a311d2cf839f912fa2903b27 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 14 Feb 2023 18:36:28 +0100 Subject: [PATCH] add update playbook --- update.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 update.yml 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