fix output

This commit is contained in:
Robert 2023-02-19 17:51:52 +01:00
parent 9c52bd8be8
commit 1edc290b4b

View File

@ -5,11 +5,19 @@
become: yes # als root ausführen become: yes # als root ausführen
tasks: tasks:
- name: Update apt-get repo and cache - name: Update apt-get repo and cache
register: apt-get-update
apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 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 - name: Upgrade all apt packages
register: apt-get-upgrade
apt: upgrade=dist force_apt_get=yes apt: upgrade=dist force_apt_get=yes
- name: Display the last line of the previous task to check the stats - name: Display the last line of the previous task to check the stats
debug: debug:
msg: "{{updatesys.stdout_lines|last}}" msg: "{{apt-get-upgrade.stdout_lines|last}}"