Skip to content

cisagov/ansible-role-pip

Repository files navigation

ansible-role-pip

GitHub Build Status CodeQL

This is an Ansible role for installing pip.

Requirements

This role uses the package Ansible module, so its requirements apply.

Role Variables

Variable Description Default Required
pip_install_pip2 A boolean indicating whether or not to install pip2 alongside pip3. Note that this is only possible for Debian Buster; therefore, this role variable is ignored for any other distribution. false No

Dependencies

None.

Installation

This role can be installed via the command:

ansible-galaxy install --role-file path/to/requirements.yml

where requirements.yml looks like:

---
- name: pip
  src: https://github.com/cisagov/ansible-role-pip

and may contain other roles as well.

For more information about installing Ansible roles via a YAML file, please see the ansible-galaxy documentation.

Example Playbook

Here's how to use it in a playbook:

- hosts: all
  become: true
  become_method: sudo
  tasks:
    - name: Install pip
      ansible.builtin.include_role:
        name: pip

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

Author Information

Shane Frasier - jeremy.frasier@gwe.cisa.dhs.gov