Git Product home page Git Product logo

ansible_pyenv_role's Introduction

Ansible Role: pyenv

Description

This Ansible role installs and configures pyenv for managing Python versions on your systems.

Requirements

  • Ansible >= 2.9
  • Python packages on target systems (might be required by pyenv-installer.sh)

Role Variables

  • pyenv_root: (Optional) Path to the pyenv installation directory. Defaults to /opt/pyenv.
  • pyenv_deb_packages: (List) List of Debian/Ubuntu package names required for pyenv (e.g., build-essential).
  • pyenv_rpm_packages: (List) List of RPM package names required for pyenv (e.g., gcc).

Dependencies

  • None

Example Playbook

---
- hosts: all
  become: true  # Required for some installation steps
  roles:
    - role: pyenv
      pyenv_root: ~/.pyenv  # Optional, customize if needed. Defaults to `/opt/pyenv`

Installing the Role

  1. Clone or copy this role directory into your Ansible roles directory.
  2. (Optional) Modify the role variables (defaults/main.yml and vars/main.yml) to customize settings like pyenv_root, package lists, etc. Since I only added packages for Debian family and Red Hat family.
  3. Include the role in your playbook as described in the documentation for your chosen Ansible playbook format.

License

MIT License

Author

rlko

Additional Notes

  • System dependencies for pyenv installation are on based the pyenv wiki.
  • Consider error handling and logging mechanisms in your playbook for a more robust deployment.

ansible_pyenv_role's People

Contributors

rlko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.