arillso.system.packages role – Package management with multi-entry-point support
Note
This role 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.packages.
Entry point apt_config – APT configuration entry point
Synopsis
Entry point for managing APT configuration files
Creates custom APT configuration files in /etc/apt/apt.conf.d/
Parameters
Parameter |
Comments |
|---|---|
List of APT configuration files to create |
|
Configuration name |
|
Configuration file priority (00-99) Default: |
|
List of APT configuration settings |
|
APT configuration key |
|
APT configuration value |
|
Packages allowed to upgrade to new major versions (overrides pins) Default: |
|
Days interval for autoclean (0 = disabled) Default: |
|
Automatically reboot if required Choices:
|
|
Time for automatic reboot (HH:MM) Default: |
|
Reboot even if users are logged in Choices:
|
|
Automatically update package lists Choices:
|
|
Automatically install security upgrades Choices:
|
|
Enable debug logging Choices:
|
|
Download bandwidth limit in KB/s (0 = unlimited) Default: |
|
Only download packages, don’t install Choices:
|
|
Fix interrupted dpkg state Choices:
|
|
Install unattended-upgrades package Choices:
|
|
Install upgrades on shutdown instead of background Choices:
|
|
Enable email notifications Choices:
|
|
Only send email on errors Choices:
|
|
Email address for notifications Default: |
|
Split upgrades into smallest possible chunks Choices:
|
|
List of upgrade origins to allow Default: |
|
Packages to never auto-update (supports wildcards) Default: |
|
Random sleep time before running (seconds) Default: |
|
Remove dependencies that become unused after upgrade Choices:
|
|
Automatically remove unused dependencies Choices:
|
|
Automatically remove old kernel packages Choices:
|
|
Skip updates on metered connections Choices:
|
|
Enable syslog logging Choices:
|
|
Syslog facility to use Default: |
|
Enable custom timer configuration Choices:
|
|
Systemd OnCalendar timer expression (e.g., ‘daily’, ‘02:00’, ‘*-*-* 04:00:00’) Default: |
|
Run missed timers on boot if system was offline Choices:
|
|
Random delay before execution (e.g., ‘30m’, ‘1h’, ‘3600s’) Default: |
|
Enable verbose logging Choices:
|
|
Pin packages to major versions (block major upgrades, allow minor) Default: |
Entry point cache – Package cache management entry point
Synopsis
Entry point for updating APT package cache
Used as dependency by other roles
Parameters
Parameter |
Comments |
|---|---|
Cache validity time in seconds Default: |
|
Force cache update regardless of age Choices:
|
|
Update APT cache Choices:
|
Entry point clean – Package cleanup and configuration entry point
Synopsis
Entry point for cleaning package cache and configuring APT
Handles autoclean, autoremove, and APT configuration files
Parameters
Parameter |
Comments |
|---|---|
List of APT configuration files to create Default: |
|
Configuration name |
|
Configuration file priority (00-99) Default: |
|
List of APT configuration settings |
|
APT configuration key |
|
APT configuration value |
|
Clean package cache Choices:
|
|
Remove unused packages Choices:
|
Entry point hold – Package hold entry point
Synopsis
Entry point for holding packages from unified list
Prevents packages from being upgraded
Parameters
Parameter |
Comments |
|---|---|
List of packages to hold |
|
Package name |
|
Package state (must be hold) Choices:
|
Entry point install – Package installation entry point
Synopsis
Entry point for installing packages from unified list
Handles only installation operations (present, latest, build-dep states)
Parameters
Parameter |
Comments |
|---|---|
List of packages to install |
|
Force package operation Choices:
|
|
Install recommended packages Choices:
|
|
Package name |
|
Package state Choices:
|
|
Number of retries for failed operations Default: |
|
Delay between retries in seconds Default: |
Entry point keys – APT key management entry point
Synopsis
Entry point for managing APT signing keys
Supports keys from URLs, keyservers, or direct data
Parameters
Parameter |
Comments |
|---|---|
List of APT signing keys to manage |
|
Key data directly |
|
Convert ASCII-armored key to binary format using gpg --dearmor Choices:
|
|
Key ID for keyserver |
|
Path to keyring file for modern GPG key management |
|
Keyserver to use |
|
Name for the key (used for default keyring filename) |
|
Key state Choices:
|
|
URL to key file |
Entry point main – Package management with multi-entry-point support
Synopsis
Manages APT packages including installation, removal, and configuration
Supports repositories, keys, and advanced APT configuration
Uses unified package list approach
Parameters
Parameter |
Comments |
|---|---|
List of APT configuration files (includes proxy settings) Default: |
|
Configuration name |
|
Configuration file priority (00-99) Default: |
|
List of APT configuration settings |
|
APT configuration key |
|
APT configuration value |
|
Clean package cache Choices:
|
|
Remove unused packages Choices:
|
|
Enable cache management entry point Choices:
|
|
Cache validity time in seconds Default: |
|
Enable cleanup entry point Choices:
|
|
Force cache update regardless of age Choices:
|
|
List of APT signing keys to add Default: |
|
Key data directly |
|
Key ID for keyserver |
|
Path to keyring file for modern GPG key management |
|
Keyserver to use |
|
Name for the key (used for default keyring filename) |
|
Key state Choices:
|
|
URL to key file |
|
Enable key management entry point Choices:
|
|
Unified list of packages with their desired states Default: |
|
Force package operation Choices:
|
|
Install recommended packages Choices:
|
|
Package name |
|
Purge package configuration (for absent state) Choices:
|
|
Package state Choices:
|
|
List of APT repositories to add Default: |
|
Custom filename for repository |
|
Repository specification |
|
Repository state Choices:
|
|
Enable repository management entry point Choices:
|
|
Number of retries for failed operations Default: |
|
Delay between retries in seconds Default: |
|
List of services to restart after package changes Default: |
|
Enable unattended-upgrades entry point Choices:
|
|
Update APT cache before operations Choices:
|
|
Upgrade packages (false, yes, safe, full, dist) Choices:
|
|
Enable package upgrade entry point Choices:
|
Entry point packages – Package processing entry point
Synopsis
Entry point for processing packages from unified list
Handles package installation, removal, hold/unhold operations
Executes package operations in correct order: unhold → remove → install → hold
Parameters
Parameter |
Comments |
|---|---|
Unified list of packages with their desired states |
|
Allow unauthenticated packages Choices:
|
|
Clean package cache (for absent state) Choices:
|
|
Remove unused packages (for absent state) Choices:
|
|
Cache validity time in seconds |
|
Default release to install from |
|
Force package operation Choices:
|
|
Install recommended packages Choices:
|
|
Package name |
|
Only upgrade, do not install Choices:
|
|
Purge package configuration (for absent state) Choices:
|
|
Package state Choices:
|
|
Number of retries for failed operations Default: |
|
Delay between retries in seconds Default: |
|
List of services to restart after package changes Default: |
Entry point remove – Package removal entry point
Synopsis
Entry point for removing packages from unified list
Handles only removal operations (absent state)
Parameters
Parameter |
Comments |
|---|---|
List of packages to remove |
|
Remove unused packages Choices:
|
|
Force package operation Choices:
|
|
Package name |
|
Purge package configuration Choices:
|
|
Package state (must be absent) Choices:
|
|
Number of retries for failed operations Default: |
|
Delay between retries in seconds Default: |
Entry point repositories – Repository management entry point
Synopsis
Entry point for managing APT repositories and keys
Handles repository addition and GPG key management
Parameters
Parameter |
Comments |
|---|---|
List of APT signing keys to add Default: |
|
Key data directly |
|
Key ID for keyserver |
|
Path to keyring file for modern GPG key management |
|
Keyserver to use |
|
Name for the key (used for default keyring filename) |
|
Key state Choices:
|
|
URL to key file |
|
List of APT repositories to add |
Entry point unhold – Package unhold entry point
Synopsis
Entry point for unholding packages from unified list
Allows previously held packages to be upgraded
Parameters
Parameter |
Comments |
|---|---|
List of packages to unhold |
|
Package name |
|
Package state (must be unhold) Choices:
|
Entry point upgrade – Upgrade packages entry point
Synopsis
Entry point for upgrading system packages
Supports different upgrade strategies
Parameters
Parameter |
Comments |
|---|---|
Type of upgrade to perform Choices:
|