Download and install python from sources
Variables that can be defined from the command line are:
version: The python version to install. Default is 2.7.11python_from_sources: Installs python from sourcej: The argument for make's "j". Current default is number of processors + 1python_prefix: The prefix to pass down toconifigure --prefix=value
python_from_ppa: Installs python from a ppapython_ppa: ppa to use when installing from ppa
If you save this as main.yml, you can install to localhost using this line:
ansible-playbook main.yml -i "localhost," -c local -b --ask-become-pass
---
- hosts: all
roles:
- python
BSD