buluma.upgrade

Ansible Role Upgrade

This role upgrades a package only if it is already installed. If the package isn't installed, it does nothing.

GitHub Version Issues Pull Requests Downloads
github Version Issues PullRequests Ansible Role

Example Playbook

Here’s a simple example from molecule/default/converge.yml. It is tested with every update, pull request, and release.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: buluma.upgrade

To prepare the machine, use the molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: buluma.bootstrap

For more details, check the full explanation and example on using these roles.

Role Variables

Default values for the variables are found in defaults/main.yml:

---
# defaults file for upgrade

# This role can upgrade a list of packages if they are installed:
# upgrade_packages:
#   - package
#   - screen
#   - kernel
upgrade_packages: []

Requirements

State of Used Roles

These roles help to set up the system. You can prepare your system differently.

Requirement GitHub Version
buluma.bootstrap Ansible Molecule Version

Context

This role is part of several compatible roles. For more information, see the documentation of these roles.

Here’s a view of related roles:

dependencies

Compatibility

This role has been tested on these container images:

Container Tags
Alpine all
Amazon Candidate
EL 8, 9
Debian all
Fedora all
opensuse all
Ubuntu all

Ansible version 2.12 or higher is required, and tests have been conducted on:

  • Older versions
  • The latest version
  • Development versions

If you notice any issues, please report them on GitHub.

Changelog

You can check the Role History.

License

This role is licensed under Apache-2.0.

Author Information

Created by Shadow Walker.

Informazioni sul progetto

Upgrade a package only if it is installed otherwise do nothing.

Installa
ansible-galaxy install buluma.upgrade
Licenza
apache-2.0
Download
19.3k
Proprietario
DevOps Engineer