arillso.system.apt_update_info module – Retrieves a list of updatable packages.
Note
This module is part of the arillso.system collection (version 1.0.5).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install arillso.system.
To use it in a playbook, specify: arillso.system.apt_update_info.
New in arillso.system 0.0.1
Synopsis
This module fetches a list of all packages on an APT-based system that are available for update.
It’s intended to be used within an Ansible environment.
Upon execution, it returns a detailed list of packages with information on current and available versions, aiding in the assessment of pending updates.
Examples
- name: Get list of updatable packages
arillso.system.apt_update_info:
register: apt_updates
- name: Display updatable packages
debug:
var: apt_updates.packages
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
List of packages that can be updated Returned: always |
|
Available version for update Returned: always |
|
Currently installed version Returned: always |
|
Name of the package Returned: always |