Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults
handlers
meta
tasks
templates
tests
vagrant
vars
.gitignore
.travis.yml
LICENSE
README.md
Vagrantfile
run_vagrant_test.sh

README.md

ansible-role-pyenv

Build Status

GitHub tag

Contributors GitHub last commit (branch) license GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

Ansible role to install pyenv

Role Variables

Set pyenv_env: system to install pyenv system-wide, or pyenv_env: local for local installation.

Add plugins under pyenv.plugins var.

Define python versions to install under pythons var.

Example:

pyenv_env: system

pyenv:
  plugins:
    - { name: pyenv-virtualenv, repo: 'https://github.com/pyenv/pyenv-virtualenv.git' }

pythons:
  - version: 2.7.14

Supported OS

  • Ubuntu
    • precise (12.04)
    • trusty (14.04)
    • xenial (16.04) - xenial requires python2 to be installed for ansible support
  • CentOS
    • 6
    • 7
  • RHEL
    • 6
    • 7

Example Playbook

---
# Example playbook
- name: pyenv setup
  hosts: servers
  gather_facts: yes

  tasks:
  - include_role:
      name: eendroroy.pyenv
    vars:
      pyenv_env: system
      pythons:
        - version: 2.7.14
        - version: 3.6.5

Contributing

Bug reports and pull requests are welcome on GitHub at ansible-role-pyenv repository. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Author

License

The project is available as open source under the terms of the MIT License.

You can’t perform that action at this time.