/ansible-python-install

Install Python on Ubuntu and RedHat based systems with Posit's pre-compiled binaries

Primary LanguageJinjaMIT LicenseMIT

Ansible Python Install

Install Python (with Jupyter) on Ubuntu and RedHat based systems with Posit's pre-compiled binaries (docs)

CI Ansible Galaxy

Requirements

If you want to install Workbench's plugins, then the Python used for Jupyter installation needs to be >= 3.7

Role Variables

Variable Default Choices Comments
python_versions [3.10.6, 3.9.13] Array with Python versions >= 3.7 Version have to be specified as 3.x.y
python_jupyter_kernel true Boolean: true, false Makes Python available as a Jupyter Kernel
python_jupyter_install true Boolean: true, false Whether to install Jupyter
python_jupyter_install_method virtualenv String: virtualenv, system Method of Jupyter installation
python_jupyter_python_version "{{ python_versions[0] }}" One of the versions passed in python_versions Used only for virtualenv method
python_jupyter_workbench true Boolean: true, false Whether to install Workbench's plugins for Jupyter

Dependencies

None.

Example Playbook

- hosts: all
  vars:
    python_versions:
      - 3.10.6
      - 3.7.8
  roles:
     - appsilon.python_install

License

MIT

Author Information

Appsilon