agoloncser.pyenv
Pyenv setup with ansible
Ansible role to set up pyenv and install different Python versions. It does not set up your shell for using pyenv though. See pyenv documentation for this.
Requirements
None.
Role Variables
This is a sample variable structure used by this role:
pyenv_python_versions:
- version: 3.7.7
- version: 2.7.8
state: absent
- version: 3.8.3
global: yes
pyenv_python_versions.item.version
The python version to install.
pyenv_python_versions.item.state
The state of installed Python version. Set absent to remove,
present to install. Default: present. Optional
pyenv_python_versions.item.global
Set this python version as global. Only the last item set as global: yes will be set as global Python version.
pyenv_dir
Where to set up pyenv. Default: ~/.pyenv
Dependencies
None.
Example Playbook
- hosts: all
vars:
pyenv_python_versions:
- version: 3.7.7
- version: 2.7.8
state: absent
- version: 3.8.3
global: yes
pyenv_dir: ~/.pyenv
roles:
- agoloncser.pyenv
License
BSD
Author Information
About
Ansible role to set up [pyenv](https://github.com/pyenv/pyenv) and install different Python versions. It does not set up your shell for using pyenv though. See pyenv documentation for this.
Install
ansible-galaxy install agoloncser.pyenvLicense
Unknown
Downloads
1.4k
Owner
