Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
/ ansible-role-pyenv Public archive

An Ansible role to install pyenv.

License

Notifications You must be signed in to change notification settings

bluk/ansible-role-pyenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ansible-role-pyenv

Apache-2.0 License Build Status

An Ansible role to install pyenv.

Requirements

  1. Add pyenv to your $PATH after install.
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bash_profile
  1. Run the following:
~/.pyenv/bin/pyenv init

Role Variables

  • pyenv_install_path - The path to install pyenv.

  • pyenv_git_url - The git URL to clone pyenv from.

  • pyenv_git_update - If the cloned pyenv git repository should be updated.

  • pyenv_virtualenv_git_url - The path to the python-build plugin for pyenv.

  • pyenv_virtualenv_git_update - If the cloned python-build git repository should be updated.

Dependencies

No dependencies.

Example Playbook

- hosts: servers
  roles:
     - { role: bluk.pyenv }

License

Apache 2.0