https://github.com/mediapop/ansible-python
A role for setting up an alternative default python.
https://github.com/mediapop/ansible-python
alternative-pythons ansible playbook python
Last synced: 3 months ago
JSON representation
A role for setting up an alternative default python.
- Host: GitHub
- URL: https://github.com/mediapop/ansible-python
- Owner: mediapop
- License: mit
- Created: 2018-02-07T10:14:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T17:45:17.000Z (almost 5 years ago)
- Last Synced: 2025-01-24T08:11:41.798Z (4 months ago)
- Topics: alternative-pythons, ansible, playbook, python
- Size: 11.7 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Python
*This ansible role is created and maintained by [Media Pop](https://www.mediapop.co), a software consultancy. Hire us to resolve your DevOps challenges.*
[](https://travis-ci.org/mediapop/ansible-python)
[](https://galaxy.ansible.com/mediapop/python)Install other versions of python and set them as the default.
## Role Variables
```yml
python_alternative_version: "3.6"
python_pip_version: "20.2.2"
```## Example Playbook
```yml
- hosts: webservers
roles:
- role: mediapop.python
```## No module named apt_pkg
You can't use these alternative pythons with ansible always because it uses a package provided by `python3-apt`. [Set the ansible runtime python](http://docs.ansible.com/ansible/latest/python_3_support.html) with `ansible_python_interpreter: /usr/bin/python3.5` in the inventory or the playbook.