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: 11 months 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 (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-13T18:34:19.000Z (about 1 year ago)
- Last Synced: 2025-02-12T19:49:14.285Z (about 1 year 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
=========
[](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