This role install pip (Python package manager tools) and configure repository mirror.
# 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"
- mds1455975151.epel(example)
Download the dependencies by issuing this command:
ansible-galaxy install --role-file requirements.yml
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 }
BSD