Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samdoran/ansible-role-pyenv

Ansible role to install pyenv
https://github.com/samdoran/ansible-role-pyenv

ansible ansible-role pyenv python

Last synced: 22 days ago
JSON representation

Ansible role to install pyenv

Awesome Lists containing this project

README

        

pyenv
=========
[![Galaxy](https://img.shields.io/badge/galaxy-samdoran.pyenv-blue.svg?style=flat)](https://galaxy.ansible.com/samdoran/pyenv)

Install [`pyenv`](https://github.com/pyenv/pyenv), a simple Python version manager. On macOS, installation is done via Homebrew. On Linux, the `pyenv` repository is cloned via `git`.

Requirements
------------

`git` installed
Homebrew installed on macOS.

Role Variables
--------------

| Name | Default Value | Description |
|-------------------|---------------------|----------------------|
| `pyenv_repo_url` | `https://github.com/yyuu/pyenv.git` | URL used to clone via `git`. |
| `pyenv_repo_dest` | `~{{ pyenv_user }}/.pyenv` | Directory where `pyenv` will be cloned |
| `pyenv_user` | `root` | User account used to clone and configure `pyenv`. |
| `pyenv_shell` | `ansible_env.SHELL` | Shell used for setting up `pyenv`. Controls the lines inserted and into which shell config file. Supported shells are `fish`, `zsh`, and `bash`. |
| `pyenv_install_versions` | `[]` | List of Python versions to install. Must match a version in `pyenv install --list`. |
| `pyenv_plugins` | see `defaults/main.yml` | List of `pyenv` plugins to install. |

Dependencies
------------

None.

Example Playbook
----------------

- hosts: all
roles:
- samdoran.pyenv

License
-------

Apache 2.0