Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

suzuki-shunsuke/ansible-pyenv

Repository files navigation

ansible-pyenv

Build Status

ansible role to install pyenv.

Requirements

  • git

Role Variables

name required default description
pyenv_root no $PYENV_ROOT >> $HOME/.pyenv
pyenv_repo no https://github.com/pyenv/pyenv
pyenv_version no HEAD
pyenv_update no true
pyenv_is_dependencies_installed no false By default build dependencies are not installed
pyenv_rc_path no "NOT ADD" By default configuration is not added
pyenv_darwin_build_dependencies no see defaults/main.yml If pyenv_is_dependencies_installed is "no" this is ignored
pyenv_redhat_build_dependencies no see defaults/main.yml If pyenv_is_dependencies_installed is "no" this is ignored
pyenv_debian_build_dependencies no see defaults/main.yml If pyenv_is_dependencies_installed is "no" this is ignored
pyenv_darwin_additional_build_dependencies no [] If pyenv_is_dependencies_installed is "no" this is ignored
pyenv_redhat_additional_build_dependencies no [] If pyenv_is_dependencies_installed is "no" this is ignored
pyenv_debian_additional_build_dependencies no [] If pyenv_is_dependencies_installed is "no" this is ignored

About build dependencies, see also here.

Dependencies

Nothing.

Example Playbook

- hosts: servers
  roles:
    - role: suzuki-shunsuke.pyenv
      pyenv_root: "{{ ansible_env.HOME }}/.ghq/github.com/pyenv/pyenv"
      pyenv_version: v1.1.0
      pyenv_update: false
      pyenv_is_dependencies_installed: true
      pyenv_rc_path: "{{ ansible_env.HOME }}/.bashrc"
      pyenv_darwin_build_dependencies:
        - readline

Change Log

See CHANGELOG.md.

Contributing

See CONTRIBUTING.md.

See also

License

MIT