robertdebock.update_pip_packages

Ansible Role: Update Pip Packages

This role helps you find and update your Python pip packages.

GitHub GitLab Downloads Version
github gitlab downloads Version

Example Playbook

Here is an example playbook that shows how to use this role. This example is taken from the file molecule/default/converge.yml and is tested whenever changes are made.

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

  roles:
    - role: robertdebock.update_pip_packages
      update_pip_package_ignore:
        - libcomps
        - PyGObject
        - pygobject
        - pyxdg
        - resolvelib
        - dbus-python
        - setuptools

Before running this, your machine needs to be ready. In CI (Continuous Integration), this is done using the file molecule/default/prepare.yml:

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

  roles:
    - role: robertdebock.bootstrap
    - role: robertdebock.epel
    - role: robertdebock.buildtools
    - role: robertdebock.python_pip
      python_pip_modules:
        - name: ansible

You can find a full explanation and example on how to use these roles.

Role Variables

The default values for the variables can be found in defaults/main.yml:

---
# defaults file for update_pip_packages

# List of pip executables to check for packages.
# You can provide the full path or just the name.
# This role automatically detects pip and pip3, but you can specify your own.
update_pip_packages_clients: []

# Here you can list packages you want to ignore during updates.
# update_pip_package_ignore:
#   - some_pip_package

Requirements

State of Used Roles

The following roles are used to set up your system. You can choose to prepare your system in a different way.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.epel Build Status GitHub Build Status GitLab
robertdebock.python_pip Build Status GitHub Build Status GitLab
robertdebock.buildtools Build Status GitHub Build Status GitLab

Context

This role is part of a set of compatible roles. Check the documentation of these roles here for more details.

Here is a graphic showing related roles: dependencies

Compatibility

This role has been tested with the following container images:

Container Tags
Debian all
EL 9
Fedora all

Ansible version 2.12 or newer is required. The tests cover:

  • The previous version.
  • The current version.
  • The development version.

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

License

This project is licensed under Apache-2.0.

Author Information

Created by robertdebock.

If you like this work, consider sponsoring me.

Informazioni sul progetto

Find and update pip packages.

Installa
ansible-galaxy install robertdebock.update_pip_packages
Licenza
apache-2.0
Download
134
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.