gzm55.python_module_bootstrap
python_module_bootstrap (2.0.1)
Bootstrap python for ansible python modules and detect correct ansible_python_interpreter for python3. When
bootstraping, first try to install python2 (or python3 on alpine) using some package management, then if the remote host
is a Linux X64 with glibc, we'll try to install a exxo python for both root user and non-root users.
The detecting and bootstraping scripts to be executed by raw module are all compatible with sh(default),
csh and fish ansible shell types, but do not work with powershell.
Requirements
python_module_bootstrap >= 2.0.0requiresansible >= 2.8python_module_bootstrap >= 1.0requiresansible >= 2.5python_module_bootstrap < 1.0requiresansible >= 2.0
Role Variables
exxo_version: default is 0.0.7exxo_url: default tohttps://github.com/gzm55/ansible-python-module-bootstrap-role/releases/download/upload-exxo-bz2/exxo-<exxo_version>.tar.bz2exxo_untar_flags: default toj, if the remote system can't decompress xz format, we can recompress as gzip, and update this flag
Dependencies
N/A
Example Playbook
- hosts: servers
roles:
- { role: gzm55.python_module_bootstrap }
License
BSD
Install
ansible-galaxy install gzm55.python_module_bootstrapLicense
bsd-2-clause
Downloads
207
Owner
