Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 993 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 993 Bytes

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.