From 1edc290b4b63e5469fe6b93b3ee4b38c72b5e56a Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 19 Feb 2023 17:51:52 +0100 Subject: [PATCH] fix output --- update.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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