Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

hellofresh/Stouts.python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stouts.python

Build Status Galaxy

Ansible role which manage python's versions (pip, virtualenv)

Variables

---

python_enabled: yes                 # The role is enabled
python_ppa: ppa:fkrull/deadsnakes   # Python PPA
python_versions: [2.7, 3.4]         # Set versions (2.6, 2.7, 3.3, 3.4) which will be installed

python_install: []                  # Set packages to install globally
python_virtualenvs: []              # Create virtualenvs
                                    # Ex: python_virtualenvs:
                                    #     - path: /path/to/venv
                                    #     - path: /path/to/another/venv
                                    #       python: python3.4


python_bin: /usr/bin/python
python_pkg_bin: /usr/local/bin
python_yum_disablerepo: no
python_yum_enablerepo: no

Usage

Add Stouts.python to your roles and set vars in your playbook file.

Example:

- hosts: all

  roles:
    - Stouts.python

  vars:
    python_versions: [2.7, 3.3]
    python_install: [django, gunicorn]
    python_virtualenvs:
    - path: /opt/myproject/env

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role which manage python (pip, virtualenv)

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%