diff --git a/update.yml b/update.yml index 63cc146..8291c6e 100644 --- a/update.yml +++ b/update.yml @@ -5,11 +5,19 @@ become: yes # als root ausführen tasks: - name: Update apt-get repo and cache + register: apt-get-update apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 + - name: Display the last line of the previous task to check the stats + debug: + msg: "{{apt-get-update.stdout_lines|last}}" + - name: Upgrade all apt packages + register: apt-get-upgrade apt: upgrade=dist force_apt_get=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 + msg: "{{apt-get-upgrade.stdout_lines|last}}" + + \ No newline at end of file