Skip to content

Repository files navigation

Ansible Python Install

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

CIAnsible Galaxy

Requirements

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

Role Variables

VariableDefaultChoicesComments
python_versions[3.10.6, 3.9.13]Array with Python versions >= 3.7Version have to be specified as 3.x.y
python_jupyter_kerneltrueBoolean: true, falseMakes Python available as a Jupyter Kernel
python_jupyter_installtrueBoolean: true, falseWhether to install Jupyter
python_jupyter_install_methodvirtualenvString: virtualenv, systemMethod of Jupyter installation
python_jupyter_python_version"{{ python_versions[0] }}"One of the versions passed in python_versionsUsed only for virtualenv method
python_jupyter_workbenchtrueBoolean: true, falseWhether to install Workbench's plugins for Jupyter

Dependencies

None.

Example Playbook

- hosts: allvars:
python_versions:
- 3.10.6
- 3.7.8roles:
- appsilon.python_install

License

MIT

Author Information

Appsilon

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages