arillso.system.apt_cache role – Ensure the apt package cache is up to date

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

Entry point main – Ensure the apt package cache is up to date

Synopsis

  • Ensure that the apt package cache is up to date and has not expired.

Parameters

Parameter

Comments

apt_cache_force_apt_get

boolean

Whether to force the use of apt-get instead of apt when updating the cache.

Choices:

  • false

  • true ← (default)

apt_cache_update_cache_retries

integer

The maximum number of times to retry updating the cache if it fails.

Default: 5

apt_cache_update_cache_retry_max_delay

integer

The maximum delay (in seconds) between retry attempts when updating the cache.

Default: 12

apt_cache_valid_time

integer

The maximum age (in seconds) of the package cache before it is considered stale and needs to be updated.

Default: 86400

Entry point update_cache – Ensure the apt package cache is up to date

Synopsis

  • Ensure that the apt package cache is up to date and has not expired.

Parameters

Parameter

Comments

apt_cache_force_apt_get

boolean

Whether to force the use of apt-get instead of apt when updating the cache.

Choices:

  • false

  • true ← (default)

apt_cache_update_cache_retries

integer

The maximum number of times to retry updating the cache if it fails.

Default: 5

apt_cache_update_cache_retry_max_delay

integer

The maximum delay (in seconds) between retry attempts when updating the cache.

Default: 12

apt_cache_valid_time

integer

The maximum age (in seconds) of the package cache before it is considered stale and needs to be updated.

Default: 86400