Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pycklets / resources / ansible-role / freckfrackery.python
  ..
  credits
  defaults
  filter_plugins
  handlers
  meta
  tasks
  templates
  tests
  vars
  .travis.yml
  README.md
  VERSION
Size: Mime:

freckfrackery.python

Platforms

This role creates Python environments, either using conda, pyenv, or via system Python.

Role variables

List of default variables available in the inventory:

---

python_type: pyenv          # the type of the python install, choose between 'auto', 'system', 'conda', 'pyenv'
python_version: latest     # the version, either 'latest', '2' or '3', or 2 (e.g. 2.7, 3.8) or 3 digit version

# python_owner:            # either not defined or empty, in which case the current user will be used, a username, or 'root' to indicate a system install. this setting might be ignored, depending on the type of install


# python_base_path                 # base path for conda or pyenv install
python_update_components: false    # whether to update components of an install, even if they are already present (git repos, etc)
# python_build_opts:       # options for building python (e.g. "--enable-shared")

# python_virtualenv_exe:       # python executable to use for the virtualenv

# python_virtualenv_name:   # when provided, a virtualenv with that name will be created
# python_virtualenv_base:   # when specified, the virtualenv to be created will use this as parent directory

python_tasks: ["install-python"]   # list of tasks to execute, options: 'install-python', 'create-virtualenv', 'install-python-package'

python_pip_packages: []
python_pip_extra_args: ""
python_pip_packages_state: "latest"

List of internal variables used by the role:

__python_version_final__
__pyenv_available__
__python_owner_home__
__python_virtualenv_exe__
__pyenv_base_path__
python_owner
__pyenv_init_options__
__python_base_path__
python_virtualenv_base
__python_system_packages__
__virtualenv_path__
__pyenv_python_configure_opts__
__pip_requirements_available__

Usage

Details

TBD

Example playbook

- hosts: all
  roles:
    - freckfrackery.python

Requirements:

  • git (for pyenv install type)

Authors and license

freckfrackery.python role was written by:

License: GPLv3


This role is part of the freckles project.

README.md generated by Ansigenome.