Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/samdoran/ansible-role-pyenv
- Owner: samdoran
- Created: 2020-02-25T16:17:37.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-13T18:34:19.000Z (28 days ago)
- Last Synced: 2024-12-13T19:21:03.662Z (28 days ago)
- Topics: ansible, ansible-role, pyenv, python
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.pyenvLicense
-------Apache 2.0