Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wtower/ansible-python-latest
Ansible role to Install the latest Python 3 version in Ubuntu using the deadsnakes ppa
https://github.com/wtower/ansible-python-latest
ansible-role deadsnakes python
Last synced: 7 days ago
JSON representation
Ansible role to Install the latest Python 3 version in Ubuntu using the deadsnakes ppa
- Host: GitHub
- URL: https://github.com/wtower/ansible-python-latest
- Owner: Wtower
- License: bsd-3-clause
- Created: 2016-02-11T13:26:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T06:14:14.000Z (over 2 years ago)
- Last Synced: 2024-12-22T13:31:52.394Z (about 2 months ago)
- Topics: ansible-role, deadsnakes, python
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
python-latest
=============Ansible role to install the latest **Python 3** version in **Ubuntu** using the [deadsnakes] ppa.
Ubuntu ships Python 3 [separately from v2], which is the default. Python 3 versions in Ubuntu LTS releases are:
- 10.04: v3.1
- 12.04: v3.2
- 14.04: v3.4Add the role `python-latest` to [install Python 3.5].
Variables
---------- `python_version`: The python version to install (major.minor), default: 3.5
Playbook examples
-----------------Plain:
---
# Install the latest Python 3 version
- hosts: servers
roles:
- python-latestSpecify variables:
---
# specify extra variable ``-e "host=xyz"``
- hosts: "{{ host | default('localhost') }}"
gather_facts: no
roles:
- role: python-latest
python_version: 3.4[deadsnakes]: https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes
[separately from v2]: http://askubuntu.com/questions/134747/how-do-i-run-python-3
[install Python 3.5]: http://askubuntu.com/a/290283/233134