Skip to content

A role for setting up an alternative default python.

License

Notifications You must be signed in to change notification settings

mediapop/ansible-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Python

This ansible role is created and maintained by Media Pop, a software consultancy. Hire us to resolve your DevOps challenges.

Travis Ansible Galaxy

Install other versions of python and set them as the default.

Role Variables

python_alternative_version: "3.6"
python_pip_version: "20.2.2"

Example Playbook

- 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 with ansible_python_interpreter: /usr/bin/python3.5 in the inventory or the playbook.

About

A role for setting up an alternative default python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published