Skip to content

sjkcdpc/ansible-role-pip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-pip Build Status

This role install pip (Python package manager tools) and configure repository mirror.

Role Variables

# Pypi mirrors website url
pip_index_url: http://mirrors.aliyun.com/pypi/simple/

# Pypi mirrors host
pip_mirrors_host: mirrors.aliyun.com

# Install with the package installer (package) or the get-pip installer (installer)
pip_install_method: "package"

# The url for the get-pip.py installer
pip_install_url: "https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py"

Dependencies

  • mds1455975151.epel(example)

Download the dependencies by issuing this command:

ansible-galaxy install --role-file requirements.yml

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: all
  roles:
     - { role: mds1455975151.ansible-role-pip }

License

BSD

Author Information

1455975151@qq.com

About

Ansible role to install and manage pip configuration

Resources

Stars

Watchers

Forks

Packages

No packages published