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 |
---|---|
Whether to force the use of apt-get instead of apt when updating the cache. Choices:
|
|
The maximum number of times to retry updating the cache if it fails. Default: |
|
The maximum delay (in seconds) between retry attempts when updating the cache. Default: |
|
The maximum age (in seconds) of the package cache before it is considered stale and needs to be updated. Default: |
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 |
---|---|
Whether to force the use of apt-get instead of apt when updating the cache. Choices:
|
|
The maximum number of times to retry updating the cache if it fails. Default: |
|
The maximum delay (in seconds) between retry attempts when updating the cache. Default: |
|
The maximum age (in seconds) of the package cache before it is considered stale and needs to be updated. Default: |