arillso.system.apt_packages role – Manage APT packages

Note

This role is part of the arillso.system collection (version 0.0.34).

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_packages.

Entry point main – Manage APT packages

Synopsis

  • This specification manages the installation, update, and removal of APT packages on a system.

Parameters

Parameter

Comments

apt_packages_allow_downgrade

boolean

Default value for allowing package downgrades. Used if not specified in the package list.

Choices:

  • false ← (default)

  • true

apt_packages_force_apt_get

boolean

Default value for forcing the use of apt-get. Used if not specified in the package list.

Choices:

  • false ← (default)

  • true

apt_packages_install_recommends

boolean

Default value for installing recommended packages. Used if not specified in the package list.

Choices:

  • false

  • true ← (default)

apt_packages_list

list / elements=dictionary

A list of APT packages to manage. Each entry can be a package name or a dictionary with additional options.

Default: []

allow_downgrade

boolean

Whether to allow downgrading of packages.

Choices:

  • false

  • true

force_apt_get

boolean

Whether to force the use of apt-get instead of apt.

Choices:

  • false

  • true

install_recommends

boolean

Whether to install recommended packages along with the main package.

Choices:

  • false

  • true

lock_timeout

integer

Lock timeout in seconds when installing packages.

name

string

The name of the APT package.

purge

boolean

Whether to purge packages.

Choices:

  • false

  • true

state

string

The desired state of the package (‘present’, ‘absent’, ‘latest’, etc.).

version

string

The version of the package to be installed or managed.

apt_packages_lock_timeout

integer

Default value for the lock timeout. Used if not specified in the package list.

Default: 30

apt_packages_purge

boolean

Default value for purging packages. Used if not specified in the package list.

Choices:

  • false ← (default)

  • true

apt_packages_state

string

Default state of APT packages. Used if not specified in the package list.

Default: "present"