cloudera.exe.prereq_python role – Install Python for deployments

Note

This role is part of the cloudera.exe collection (version 3.0.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install cloudera.exe..

To use it in a playbook, specify: cloudera.exe.prereq_python.

Entry point main – Install Python for deployments

New in cloudera.exe 3.0.0

Synopsis

  • Ensures that the supported versions of Python for specified versions of Cloudera Manager and Runtime.

  • Also ensures that pip is installed and updated.

Parameters

Parameter

Comments

cloudera_manager_version

string / required

Version of Cloudera Manager to discover supported Python versions.

cloudera_runtime_version

string / required

Version of Cloudera Runtime to discover supported Python versions

prereq_python_upgrade

boolean

Flag to enable Python installation or upgrade if a supported version is not present.

If true, the latest supported version or the python_packages will be installed

Choices:

  • false

  • true ← (default)

python_packages

list / elements=string

Override Python packages to be installed.

This is used only when a supported version of Python is not already installed.

python_pip_packages

list / elements=string

Override Python pip packages to be installed.

Default: ["python-pip"]

Authors

  • Jim Enright

  • Webster Mudge