Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Ansible role for Python installs

Notifications You must be signed in to change notification settings

pyslackers/ansible-role-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyslackers.python

Build Status

Python role for ansible. This supports multiple python versions thanks to pythonz.

Role Variables

  • python_versions: List of valid python versions to install.
  • virtualenvs: Dict of virtual environment to create.
    • path: Virtual environment directory.
    • version: Virtual environment python version.
    • requirements: Requirements.txt file to install.
    • pip_version: Virtual environment pip version (default to latest).
    • setuptools_version: Virtual environment setuptools version (default to latest).
  • pythonz_repo: Git url to the pythonz repository (default to https://github.com/saghul/pythonz.git).
  • pythonz_version: Version of pythonz to download (default to master).
  • pip_version: Pythonz pythons interpreter pip version (default to latest).
  • setuptools_version: Pythonz pythons interpreter setuptools version (default to latest).

Example Playbook

- role: pyslackers.python
  python_versions:
    - "3.6.2"
    - "3.6.3"
  virtualenvs:
    env_1:
      path: /opt/env_1
      version: "3.6.1"
      requirements: requirements.txt
    env_2:
      path: /opt/env_2
      version: "3.6.2"
      pip_version: "8.0.1"

License

MIT

About

Ansible role for Python installs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published