Capture changes and write them to the Changelog

Currently just the list of packages to be upgraded are captured and written to the /root/Changelog, it would be better to also write about installed and added packages, for example, capture and process this output for the Changelog:

TASK [upgrade : Dist upgrade] **************************************************
Calculating upgrade...
The following packages will be REMOVED:
  libunistring2 python3-requests-kerberos
The following NEW packages will be installed:
  fonts-noto-mono libunistring5
The following packages will be upgraded:
  apt-listchanges binutils binutils-common binutils-x86-64-linux-gnu bsdutils
  cpp-13 cron cron-daemon-common dbus dbus-bin dbus-daemon
  dbus-session-bus-common dbus-system-bus-common dbus-user-session debianutils
  dpkg dpkg-dev e2fsprogs exim4-base exim4-config exim4-daemon-light
  fontconfig-config fonts-noto-core g++-13 gcc-13 gcc-13-base gettext-base
  grep jq libaom3 libapparmor1 libasan8 libatomic1 libbinutils libblkid1
  libcc1-0 libcom-err2 libcryptsetup12 libctf-nobfd0 libctf0 libcurl3-gnutls
  libdbus-1-3 libdpkg-perl libedit2 libext2fs2 libfdisk1 libfontconfig1
  libfreetype6 libgcc-13-dev libgcc-s1 libgfortran5 libgnutls-dane0
  libgnutls30 libgomp1 libgprofng0 libhwasan0 libidn2-0 libitm1 libjq1
  libkmod2 liblerc4 liblsan0 liblzma5 libmount1 libnghttp2-14 libnss-systemd
  libpam-systemd libpcre2-8-0 libpq-dev libpq5 libpsl5 libpython3.11
  libpython3.11-dev libpython3.11-minimal libpython3.11-stdlib libquadmath0
  libsframe1 libsmartcols1 libsqlite3-0 libss2 libstdc++-13-dev libstdc++6
  libsystemd-shared libsystemd0 libtsan2 libubsan1 libudev1 libunbound8
  libuuid1 linux-libc-dev logsave mount openssh-client postgresql-client
  postgresql-client-15 postgresql-client-common postgresql-common
  python3-ansible-compat python3-colorama python3-distutils python3-lib2to3
  python3-pkg-resources python3-pluggy python3-pyparsing python3-pytest
  python3-requests-toolbelt python3-setuptools python3-setuptools-whl
  python3-tk python3-uritemplate python3-wheel python3-winrm python3.11
  python3.11-dev python3.11-minimal python3.11-venv sphinx-rtd-theme-common
  systemd systemd-dev systemd-sysv systemd-timesyncd tzdata usr-is-merged
  util-linux xz-utils zlib1g zlib1g-dev