robertdebock.update_package_cache
Ansible Role: Update Package Cache
THIS ROLE IS NO LONGER MAINTAINED AS OF DEC 2023.
This role updates the cache for yum and apt package managers.
| GitHub | GitLab | Downloads | Version |
|---|---|---|---|
Example Playbook
This playbook example comes from molecule/default/converge.yml and is tested on every push, pull request, and release.
---
- name: Converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: robertdebock.update_package_cache
To prepare the machine, you can use molecule/default/prepare.yml:
---
- name: Prepare
hosts: all
become: yes
gather_facts: no
roles:
- role: robertdebock.bootstrap
For more detailed instructions, see the full explanation and example on using these roles.
Requirements
- Pip packages listed in requirements.txt.
State of Used Roles
The following roles are used to set up a system. You can use other methods for system preparation.
| Requirement | GitHub | GitLab |
|---|---|---|
| robertdebock.bootstrap |
Context
This role works with many other compatible roles. Check out the documentation of these roles for more information.
Here is an overview of related roles:

Compatibility
This role has been tested with these container images:
| Container | Tags |
|---|---|
| Alpine | all |
| Amazon | Candidate |
| EL | 8, 9 |
| Debian | all |
| Fedora | all |
| opensuse | all |
| Ubuntu | all |
The minimum Ansible version needed is 2.12. Tests have been done on:
- The previous version.
- The current version.
- The development version.
If you encounter any issues, please report them on GitHub.
License
Licensed under Apache-2.0.
Author Information
Created by robertdebock.
Please consider sponsoring me.
Update cache for yum and apt package managers.
ansible-galaxy install robertdebock.update_package_cache