diodonfrost.update_package_manager_cache

ansible-role-update-package-manager-cache

molecule Ansible Galaxy

This role provide a compliance for install update_package_manager_cache on your target host.

Requirements

This role was developed using Ansible 2.12 Backwards compatibility is not guaranteed. Use ansible-galaxy install diodonfrost.update_package_manager_cache to install the role on your system.

  • Ansible >= 2.12

Role Variables

This role has multiple variables. The defaults for all these variables are the following:

---
# defaults file for ansible-role-update-package-manager-cache

Dependencies

None

Example Playbook

This is a sample playbook file for deploying the Ansible Galaxy update_package_manager_cache role in a localhost and installing the latest version of update_package_manager_cache.

---
- hosts: localhost
  become: true
  roles:
    - role: diodonfrost.update_package_manager_cache

Local Testing

This project uses Molecule to aid in the development and testing.

To develop or test you'll need to have installed the following:

Testing with Docker

# Install requirements
pip install -r requirements-dev.txt

# Test ansible role with ubuntu 22.04
molecule test

# Test ansible role with alpine latest
image=ansible-fedora:38 molecule test

# Create fedora 38 instance
image=ansible-fedora:38 molecule create

# Apply role on fedora instance
image=ansible-fedora:38 molecule converge

# Launch tests on fedora instance
image=ansible-fedora:38 molecule verify

License

Apache 2

Author Information

This role was created in 2023 by diodonfrost.

About

Update the cache with the latest package information from various package manager repositories.

Install
ansible-galaxy install diodonfrost.update_package_manager_cache
GitHub repository
License
apache-2.0
Downloads
2.4k