arillso.system.packages role – Package management for Linux systems

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

Entry point main – Package management for Linux systems

Synopsis

  • This role manages package installations, upgrades, and removals on Linux systems.

  • It provides options for specifying package names, versions, and desired states.

Parameters

Parameter

Comments

packages_list

list / elements=dictionary

A list of packages to be managed.

allow_downgrade

boolean

Allow downgrading the package if necessary. Default is false.

Choices:

  • false

  • true

force_apt_get

boolean

Force usage of apt-get instead of aptitude. Default is false.

Choices:

  • false

  • true

ignore_checksums

boolean

Ignore checksums during installation. Default is false.

Choices:

  • false

  • true

install_recommends

boolean

Whether to install recommended packages. Default is true.

Choices:

  • false

  • true

lock_timeout

integer

Timeout for the apt lockfile. Default is 30 seconds.

name

string / required

The name of the package.

purge

boolean

Purge configurations on package removal. Default is false.

Choices:

  • false

  • true

state

string

Desired state of the package: ‘present’, ‘latest’, or ‘absent’.

version

string

Specific version of the package to be installed. Use ‘latest’ for the most recent version.